@vygruppen/spor-react 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +6 -0
- package/dist/{CountryCodeSelect-B2GP2C3U.mjs → CountryCodeSelect-ZOSDJ6DE.mjs} +1 -1
- package/dist/{chunk-NYC3Z75S.mjs → chunk-DSLSJDMJ.mjs} +4 -4
- package/dist/index.d.ts +9 -9
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/input/{Counter.tsx → NumericStepper.tsx} +9 -9
- package/src/input/index.tsx +1 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@2.3.
|
2
|
+
> @vygruppen/spor-react@2.3.1 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -10,12 +10,12 @@
|
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
12
|
"toTime" is imported from external module "@internationalized/date" but never used in "dist/index.js".
|
13
|
-
"toTime" is imported from external module "@internationalized/date" but never used in "dist/chunk-
|
14
|
-
[
|
15
|
-
[
|
16
|
-
[32mESM[39m [1mdist/
|
17
|
-
[32mESM[39m
|
18
|
-
[
|
19
|
-
[
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
21
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m254.
|
13
|
+
"toTime" is imported from external module "@internationalized/date" but never used in "dist/chunk-DSLSJDMJ.mjs".
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m2.02 KB[39m
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-ZOSDJ6DE.mjs [22m[32m351.65 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-DSLSJDMJ.mjs [22m[32m410.90 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 4844ms
|
18
|
+
[32mCJS[39m [1mdist/index.js [22m[32m890.43 KB[39m
|
19
|
+
[32mCJS[39m ⚡️ Build success in 4844ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 18593ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m254.60 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -4219,8 +4219,8 @@ var focusVisible = ({ notFocus, focus }) => ({
|
|
4219
4219
|
"&[data-focus]:not([data-focus-visible])": notFocus
|
4220
4220
|
});
|
4221
4221
|
|
4222
|
-
// src/input/
|
4223
|
-
function
|
4222
|
+
// src/input/NumericStepper.tsx
|
4223
|
+
function NumericStepper({
|
4224
4224
|
name: nameProp,
|
4225
4225
|
id: idProp,
|
4226
4226
|
value: valueProp,
|
@@ -4730,7 +4730,7 @@ var texts13 = createTexts({
|
|
4730
4730
|
sv: "Telefonnummer"
|
4731
4731
|
}
|
4732
4732
|
});
|
4733
|
-
var LazyCountryCodeSelect = React48__default.lazy(() => import('./CountryCodeSelect-
|
4733
|
+
var LazyCountryCodeSelect = React48__default.lazy(() => import('./CountryCodeSelect-ZOSDJ6DE.mjs'));
|
4734
4734
|
var Radio = forwardRef((props, ref) => {
|
4735
4735
|
return /* @__PURE__ */ React48__default.createElement(Radio$1, { ...props, ref });
|
4736
4736
|
});
|
@@ -14358,4 +14358,4 @@ var getToastComponent = (opts) => {
|
|
14358
14358
|
return ({ id }) => /* @__PURE__ */ React48__default.createElement(BaseToast, { id, variant: opts.variant }, opts.text);
|
14359
14359
|
};
|
14360
14360
|
|
14361
|
-
export { Accordion, AttachedInputs, Badge, Button, ButtonGroup, Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, ContentLoader,
|
14361
|
+
export { Accordion, AttachedInputs, Badge, Button, ButtonGroup, Card, CardSelect, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, ColorInlineLoader, ColorSpinner, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerContent, Expandable, ExpandableAlert, ExpandableItem, FloatingActionButton, FormControl, FormErrorMessage, FormLabel3 as FormLabel, Heading, IconButton, InfoSelect, InfoTag, Input, InputLeftElement2 as InputLeftElement, InputRightElement2 as InputRightElement, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, ListBox, ModalHeader, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, SearchInput, SelectItemDescription, SelectItemLabel, SimpleDrawer, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Table, Tabs, Text4 as Text, TextLink, Textarea, TimePicker, TravelTag, VyLogo, WizardPopover, createTexts, fontFaces, theme, useToast, useTranslation };
|
package/dist/index.d.ts
CHANGED
@@ -677,7 +677,7 @@ type ChoiceChipProps = {
|
|
677
677
|
*/
|
678
678
|
declare const ChoiceChip: _chakra_ui_system_dist_system_types.ComponentWithAs<_chakra_ui_system_dist_system_types.As, ChoiceChipProps>;
|
679
679
|
|
680
|
-
type
|
680
|
+
type NumericStepperProps = {
|
681
681
|
/** The name of the input field */
|
682
682
|
name?: string;
|
683
683
|
/** The current value */
|
@@ -690,34 +690,34 @@ type CounterProps = {
|
|
690
690
|
minValue?: number;
|
691
691
|
/** Optional maximum value. Defaults to 99 */
|
692
692
|
maxValue?: number;
|
693
|
-
/** Whether the
|
693
|
+
/** Whether the stepper is disabled or not */
|
694
694
|
isDisabled?: boolean;
|
695
695
|
} & BoxProps;
|
696
|
-
/** A simple
|
696
|
+
/** A simple stepper component for integer values
|
697
697
|
*
|
698
698
|
* Allows you to choose a given integer value, like for example the number of
|
699
699
|
* adults on your journey.
|
700
700
|
*
|
701
701
|
* ```tsx
|
702
|
-
* <
|
702
|
+
* <NumericStepper value={value} onChange={setValue} />
|
703
703
|
* ```
|
704
704
|
*
|
705
705
|
* You can also set a minimum and/or maximum value:
|
706
706
|
*
|
707
707
|
* ```tsx
|
708
|
-
* <
|
708
|
+
* <NumericStepper value={value} onChange={setValue} minValue={1} maxValue={10} />
|
709
709
|
* ```
|
710
710
|
*
|
711
|
-
* You can use the
|
711
|
+
* You can use the NumericStepper inside of a FormControl component to get IDs etc linked up automatically:
|
712
712
|
*
|
713
713
|
* ```tsx
|
714
714
|
* <FormControl>
|
715
715
|
* <FormLabel>Number of adults</FormLabel>
|
716
|
-
* <
|
716
|
+
* <NumericStepper />
|
717
717
|
* </FormControl>
|
718
718
|
* ```
|
719
719
|
*/
|
720
|
-
declare function
|
720
|
+
declare function NumericStepper({ name: nameProp, id: idProp, value: valueProp, defaultValue, onChange: onChangeProp, minValue, maxValue, isDisabled, ...boxProps }: NumericStepperProps): React__default.JSX.Element;
|
721
721
|
|
722
722
|
type FormControlProps = FormControlProps$1;
|
723
723
|
declare const FormControl: _chakra_ui_system_dist_system_types.ComponentWithAs<"div", FormControlProps$1>;
|
@@ -6868,4 +6868,4 @@ type TextProps = Omit<TextProps$1, "textStyle"> & {
|
|
6868
6868
|
*/
|
6869
6869
|
declare const Text: _chakra_ui_system_dist_system_types.ComponentWithAs<"p", TextProps>;
|
6870
6870
|
|
6871
|
-
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, ContentLoader, ContentLoaderProps,
|
6871
|
+
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, NumericStepper, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SelectItemDescription, SelectItemLabel, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, createTexts, fontFaces, theme, useToast, useTranslation };
|
package/dist/index.js
CHANGED
@@ -4749,7 +4749,7 @@ var init_focus_utils = __esm({
|
|
4749
4749
|
});
|
4750
4750
|
}
|
4751
4751
|
});
|
4752
|
-
function
|
4752
|
+
function NumericStepper({
|
4753
4753
|
name: nameProp,
|
4754
4754
|
id: idProp,
|
4755
4755
|
value: valueProp,
|
@@ -4837,8 +4837,8 @@ function Counter({
|
|
4837
4837
|
));
|
4838
4838
|
}
|
4839
4839
|
var VerySmallButton, SubtractIcon, AddIcon, texts10;
|
4840
|
-
var
|
4841
|
-
"src/input/
|
4840
|
+
var init_NumericStepper = __esm({
|
4841
|
+
"src/input/NumericStepper.tsx"() {
|
4842
4842
|
init_src();
|
4843
4843
|
init_box_shadow_utils();
|
4844
4844
|
init_focus_utils();
|
@@ -12141,7 +12141,7 @@ var init_input = __esm({
|
|
12141
12141
|
init_Checkbox();
|
12142
12142
|
init_CheckboxGroup();
|
12143
12143
|
init_ChoiceChip();
|
12144
|
-
|
12144
|
+
init_NumericStepper();
|
12145
12145
|
init_FormControl();
|
12146
12146
|
init_FormErrorMessage();
|
12147
12147
|
init_FormLabel();
|
@@ -23044,11 +23044,11 @@ Object.defineProperty(exports, 'SelectItem', {
|
|
23044
23044
|
get: function () { return reactStately.Item; }
|
23045
23045
|
});
|
23046
23046
|
exports.tokens = tokens10__namespace;
|
23047
|
-
exports.Counter = Counter;
|
23048
23047
|
exports.DatePicker = DatePicker;
|
23049
23048
|
exports.DateRangePicker = DateRangePicker;
|
23050
23049
|
exports.DrawerHeader = exports.ModalHeader;
|
23051
23050
|
exports.InfoSelect = InfoSelect;
|
23051
|
+
exports.NumericStepper = NumericStepper;
|
23052
23052
|
exports.SelectItemDescription = SelectItemDescription;
|
23053
23053
|
exports.SelectItemLabel = SelectItemLabel;
|
23054
23054
|
exports.createTexts = createTexts;
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Container, ContentLoader,
|
1
|
+
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Item as SelectItem, SelectItemDescription, SelectItemLabel, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-DSLSJDMJ.mjs';
|
package/package.json
CHANGED
@@ -16,7 +16,7 @@ import {
|
|
16
16
|
import { getBoxShadowString } from "../theme/utils/box-shadow-utils";
|
17
17
|
import { focusVisible } from "../theme/utils/focus-utils";
|
18
18
|
|
19
|
-
type
|
19
|
+
type NumericStepperProps = {
|
20
20
|
/** The name of the input field */
|
21
21
|
name?: string;
|
22
22
|
/** The current value */
|
@@ -29,34 +29,34 @@ type CounterProps = {
|
|
29
29
|
minValue?: number;
|
30
30
|
/** Optional maximum value. Defaults to 99 */
|
31
31
|
maxValue?: number;
|
32
|
-
/** Whether the
|
32
|
+
/** Whether the stepper is disabled or not */
|
33
33
|
isDisabled?: boolean;
|
34
34
|
} & BoxProps;
|
35
|
-
/** A simple
|
35
|
+
/** A simple stepper component for integer values
|
36
36
|
*
|
37
37
|
* Allows you to choose a given integer value, like for example the number of
|
38
38
|
* adults on your journey.
|
39
39
|
*
|
40
40
|
* ```tsx
|
41
|
-
* <
|
41
|
+
* <NumericStepper value={value} onChange={setValue} />
|
42
42
|
* ```
|
43
43
|
*
|
44
44
|
* You can also set a minimum and/or maximum value:
|
45
45
|
*
|
46
46
|
* ```tsx
|
47
|
-
* <
|
47
|
+
* <NumericStepper value={value} onChange={setValue} minValue={1} maxValue={10} />
|
48
48
|
* ```
|
49
49
|
*
|
50
|
-
* You can use the
|
50
|
+
* You can use the NumericStepper inside of a FormControl component to get IDs etc linked up automatically:
|
51
51
|
*
|
52
52
|
* ```tsx
|
53
53
|
* <FormControl>
|
54
54
|
* <FormLabel>Number of adults</FormLabel>
|
55
|
-
* <
|
55
|
+
* <NumericStepper />
|
56
56
|
* </FormControl>
|
57
57
|
* ```
|
58
58
|
*/
|
59
|
-
export function
|
59
|
+
export function NumericStepper({
|
60
60
|
name: nameProp,
|
61
61
|
id: idProp,
|
62
62
|
value: valueProp,
|
@@ -66,7 +66,7 @@ export function Counter({
|
|
66
66
|
maxValue = 99,
|
67
67
|
isDisabled,
|
68
68
|
...boxProps
|
69
|
-
}:
|
69
|
+
}: NumericStepperProps) {
|
70
70
|
const { t } = useTranslation();
|
71
71
|
const [value, onChange] = useControllableState<number>({
|
72
72
|
value: valueProp,
|
package/src/input/index.tsx
CHANGED
@@ -5,7 +5,7 @@ export * from "./CardSelect";
|
|
5
5
|
export * from "./Checkbox";
|
6
6
|
export * from "./CheckboxGroup";
|
7
7
|
export * from "./ChoiceChip";
|
8
|
-
export * from "./
|
8
|
+
export * from "./NumericStepper";
|
9
9
|
export * from "./FormControl";
|
10
10
|
export * from "./FormErrorMessage";
|
11
11
|
export * from "./FormLabel";
|