Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@web-lite/scroll-picker

Package Overview
Dependencies
Maintainers
7
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web-lite/scroll-picker - npm Package Compare versions

Comparing version 0.0.0-alpha.1.3 to 0.0.0-alpha.1.4

80

dist/main.js

@@ -8,3 +8,2 @@ var $8zHUo$reactjsxruntime = require("react/jsx-runtime");

var $8zHUo$dayjspluginarraySupport = require("dayjs/plugin/arraySupport");
var $8zHUo$weblitewappsuitoolkit = require("@weblite-wapps/ui-toolkit");
var $8zHUo$muimaterial = require("@mui/material");

@@ -53,3 +52,2 @@ var $8zHUo$scrollsnap = require("scroll-snap");

const $bc9413b8138629cd$export$10e31d74b47a44fa = (text, useGrouping = true)=>{

@@ -164,2 +162,3 @@ if (typeof text === "number") return text.toLocaleString((0, ($parcel$interopDefault($8zHUo$i18next))).language, {

const $5416477702e04be8$var$StyledDivider = (0, $8zHUo$muimaterial.styled)((0, $8zHUo$muimaterial.Divider))(({ theme: theme })=>({
// @ts-ignore
borderColor: theme.palette.semiLightGray,

@@ -279,22 +278,20 @@ borderWidth: "1px"

};
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$weblitewappsuitoolkit.ThemeProvider), {
children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5416477702e04be8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)((0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue).date()),
items: $72a75b6a0ee99415$var$rangeOfValidDays(selectedDate),
onUpdate: onDayValueChangeHandler
},
{
selectedItem: $72a75b6a0ee99415$var$rangeOfValidMonth((0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue))[(0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue).month()],
items: $72a75b6a0ee99415$var$rangeOfValidMonth(selectedDate),
onUpdate: onMonthValueChangeHandler
},
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)((0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue).year(), false),
items: $72a75b6a0ee99415$var$rangeOfValidYears(),
onUpdate: onYearValueChangeHandler
},
]
})
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5416477702e04be8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)((0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue).date()),
items: $72a75b6a0ee99415$var$rangeOfValidDays(selectedDate),
onUpdate: onDayValueChangeHandler
},
{
selectedItem: $72a75b6a0ee99415$var$rangeOfValidMonth((0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue))[(0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue).month()],
items: $72a75b6a0ee99415$var$rangeOfValidMonth(selectedDate),
onUpdate: onMonthValueChangeHandler
},
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)((0, ($parcel$interopDefault($8zHUo$dayjs)))(defaultValue).year(), false),
items: $72a75b6a0ee99415$var$rangeOfValidYears(),
onUpdate: onYearValueChangeHandler
},
]
});

@@ -414,3 +411,2 @@ }

const $62a2cc38467ef076$export$d24c54395ce0c509 = {};

@@ -493,22 +489,20 @@

};
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $8zHUo$weblitewappsuitoolkit.ThemeProvider), {
children: /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5416477702e04be8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)(String(selectedDate.minute()).padStart(2, "0")),
items: $7c219f24bc2dd5a3$var$rangeOfValidMinutes(selectedDate),
onUpdate: onMinuteValueChangeHandler
},
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)(String(selectedDate.hour()).padStart(2, "0")),
items: $7c219f24bc2dd5a3$var$rangeOfValidHours(selectedDate),
onUpdate: onHourValueChangeHandler
},
{
selectedItem: selectedDate.date() === (0, ($parcel$interopDefault($8zHUo$dayjs)))(new Date()).date() ? (0, $c541ea095fc11ee5$export$625550452a3fa3ec)("today") : selectedDate.format("D MMMM"),
items: $7c219f24bc2dd5a3$var$rangeOfValidDays().map(({ text: text })=>text),
onUpdate: onDayValueChangeHandler
},
]
})
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsx)((0, $5416477702e04be8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)(String(selectedDate.minute()).padStart(2, "0")),
items: $7c219f24bc2dd5a3$var$rangeOfValidMinutes(selectedDate),
onUpdate: onMinuteValueChangeHandler
},
{
selectedItem: (0, $bc9413b8138629cd$export$10e31d74b47a44fa)(String(selectedDate.hour()).padStart(2, "0")),
items: $7c219f24bc2dd5a3$var$rangeOfValidHours(selectedDate),
onUpdate: onHourValueChangeHandler
},
{
selectedItem: selectedDate.date() === (0, ($parcel$interopDefault($8zHUo$dayjs)))(new Date()).date() ? (0, $c541ea095fc11ee5$export$625550452a3fa3ec)("today") : selectedDate.format("D MMMM"),
items: $7c219f24bc2dd5a3$var$rangeOfValidDays().map(({ text: text })=>text),
onUpdate: onDayValueChangeHandler
},
]
});

@@ -515,0 +509,0 @@ }

@@ -8,3 +8,2 @@ import {jsx as $hgUW1$jsx, jsxs as $hgUW1$jsxs} from "react/jsx-runtime";

import $hgUW1$dayjspluginarraySupport from "dayjs/plugin/arraySupport";
import {ThemeProvider as $hgUW1$ThemeProvider} from "@weblite-wapps/ui-toolkit";
import {styled as $hgUW1$styled, Divider as $hgUW1$Divider, Stack as $hgUW1$Stack, Box as $hgUW1$Box} from "@mui/material";

@@ -50,3 +49,2 @@ import $hgUW1$scrollsnap from "scroll-snap";

const $5003abebdf8c42df$export$10e31d74b47a44fa = (text, useGrouping = true)=>{

@@ -161,2 +159,3 @@ if (typeof text === "number") return text.toLocaleString((0, $hgUW1$i18next).language, {

const $445ccf2f25615ce8$var$StyledDivider = (0, $hgUW1$styled)((0, $hgUW1$Divider))(({ theme: theme })=>({
// @ts-ignore
borderColor: theme.palette.semiLightGray,

@@ -276,22 +275,20 @@ borderWidth: "1px"

};
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ThemeProvider), {
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $445ccf2f25615ce8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)((0, $hgUW1$dayjs)(defaultValue).date()),
items: $54d77d63c5143f82$var$rangeOfValidDays(selectedDate),
onUpdate: onDayValueChangeHandler
},
{
selectedItem: $54d77d63c5143f82$var$rangeOfValidMonth((0, $hgUW1$dayjs)(defaultValue))[(0, $hgUW1$dayjs)(defaultValue).month()],
items: $54d77d63c5143f82$var$rangeOfValidMonth(selectedDate),
onUpdate: onMonthValueChangeHandler
},
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)((0, $hgUW1$dayjs)(defaultValue).year(), false),
items: $54d77d63c5143f82$var$rangeOfValidYears(),
onUpdate: onYearValueChangeHandler
},
]
})
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $445ccf2f25615ce8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)((0, $hgUW1$dayjs)(defaultValue).date()),
items: $54d77d63c5143f82$var$rangeOfValidDays(selectedDate),
onUpdate: onDayValueChangeHandler
},
{
selectedItem: $54d77d63c5143f82$var$rangeOfValidMonth((0, $hgUW1$dayjs)(defaultValue))[(0, $hgUW1$dayjs)(defaultValue).month()],
items: $54d77d63c5143f82$var$rangeOfValidMonth(selectedDate),
onUpdate: onMonthValueChangeHandler
},
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)((0, $hgUW1$dayjs)(defaultValue).year(), false),
items: $54d77d63c5143f82$var$rangeOfValidYears(),
onUpdate: onYearValueChangeHandler
},
]
});

@@ -411,3 +408,2 @@ }

const $055eea52baa20529$export$d24c54395ce0c509 = {};

@@ -490,22 +486,20 @@

};
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$ThemeProvider), {
children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $445ccf2f25615ce8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)(String(selectedDate.minute()).padStart(2, "0")),
items: $1673047609048657$var$rangeOfValidMinutes(selectedDate),
onUpdate: onMinuteValueChangeHandler
},
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)(String(selectedDate.hour()).padStart(2, "0")),
items: $1673047609048657$var$rangeOfValidHours(selectedDate),
onUpdate: onHourValueChangeHandler
},
{
selectedItem: selectedDate.date() === (0, $hgUW1$dayjs)(new Date()).date() ? (0, $9e1cc67a1fd6d40c$export$625550452a3fa3ec)("today") : selectedDate.format("D MMMM"),
items: $1673047609048657$var$rangeOfValidDays().map(({ text: text })=>text),
onUpdate: onDayValueChangeHandler
},
]
})
return /*#__PURE__*/ (0, $hgUW1$jsx)((0, $445ccf2f25615ce8$export$ba25329847403e11), {
values: [
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)(String(selectedDate.minute()).padStart(2, "0")),
items: $1673047609048657$var$rangeOfValidMinutes(selectedDate),
onUpdate: onMinuteValueChangeHandler
},
{
selectedItem: (0, $5003abebdf8c42df$export$10e31d74b47a44fa)(String(selectedDate.hour()).padStart(2, "0")),
items: $1673047609048657$var$rangeOfValidHours(selectedDate),
onUpdate: onHourValueChangeHandler
},
{
selectedItem: selectedDate.date() === (0, $hgUW1$dayjs)(new Date()).date() ? (0, $9e1cc67a1fd6d40c$export$625550452a3fa3ec)("today") : selectedDate.format("D MMMM"),
items: $1673047609048657$var$rangeOfValidDays().map(({ text: text })=>text),
onUpdate: onDayValueChangeHandler
},
]
});

@@ -512,0 +506,0 @@ }

{
"name": "@web-lite/scroll-picker",
"version": "0.0.0-alpha.1.3",
"version": "0.0.0-alpha.1.4",
"source": "src/index.ts",

@@ -18,8 +18,8 @@ "main": "dist/main.js",

"react": ">=17",
"react-dom": ">=17",
"@emotion/react": ">=11.4.1",
"@emotion/styled": ">=11.3.0",
"@mui/material": ">=5.4.0"
"react-dom": ">=17"
},
"dependencies": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"@mui/material": "^5.4.0",
"@weblite-wapps/ui-toolkit": "^0.2.1",

@@ -26,0 +26,0 @@ "dayjs": "^1.11.5",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc