@commercetools/nimbus 0.0.0-canary-20251010175720 → 0.0.0-canary-20251013071647
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/dist/chunks/{localized-field-CV69UdIU.es.js → localized-field-COJ9aoma.es.js} +2 -2
- package/dist/chunks/{localized-field-CV69UdIU.es.js.map → localized-field-COJ9aoma.es.js.map} +1 -1
- package/dist/chunks/{localized-field-BqUMaU2Z.cjs.js → localized-field-DCgNEoJc.cjs.js} +2 -2
- package/dist/chunks/{localized-field-BqUMaU2Z.cjs.js.map → localized-field-DCgNEoJc.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-BklJuHw0.cjs.js → money-input-CwrbJsn1.cjs.js} +2 -2
- package/dist/chunks/{money-input-BklJuHw0.cjs.js.map → money-input-CwrbJsn1.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-CavdTx-o.es.js → money-input-DvR9Nnz5.es.js} +2 -2
- package/dist/chunks/{money-input-CavdTx-o.es.js.map → money-input-DvR9Nnz5.es.js.map} +1 -1
- package/dist/chunks/{pagination-CBrMi7gy.es.js → pagination-2Zl9bHfw.es.js} +2 -2
- package/dist/chunks/{pagination-CBrMi7gy.es.js.map → pagination-2Zl9bHfw.es.js.map} +1 -1
- package/dist/chunks/{pagination-DUCo0L7g.cjs.js → pagination-EVJ_rBrc.cjs.js} +2 -2
- package/dist/chunks/{pagination-DUCo0L7g.cjs.js.map → pagination-EVJ_rBrc.cjs.js.map} +1 -1
- package/dist/chunks/select-97-5UUPX.cjs.js +2 -0
- package/dist/chunks/{select-D_HPNSo0.cjs.js.map → select-97-5UUPX.cjs.js.map} +1 -1
- package/dist/chunks/select-D5QaNAMe.es.js +775 -0
- package/dist/chunks/{select-CWttUH5b.es.js.map → select-D5QaNAMe.es.js.map} +1 -1
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +4 -4
- package/dist/select.d.ts +110 -7
- package/package.json +5 -5
- package/dist/chunks/select-CWttUH5b.es.js +0 -690
- package/dist/chunks/select-D_HPNSo0.cjs.js +0 -2
package/dist/index.es.js
CHANGED
|
@@ -32,7 +32,7 @@ import { V as Ut } from "./chunks/visually-hidden-CVUszTlg.es.js";
|
|
|
32
32
|
import { T as Gt } from "./chunks/text-input-DWJ-CPVR.es.js";
|
|
33
33
|
import { N as Vt } from "./chunks/number-input-Cq95vVse.es.js";
|
|
34
34
|
import { G as Wt } from "./chunks/grid-De8qjf98.es.js";
|
|
35
|
-
import { S as Xt, c as Jt, d as Qt, b as Yt, a as Zt } from "./chunks/select-
|
|
35
|
+
import { S as Xt, c as Jt, d as Qt, b as Yt, a as Zt } from "./chunks/select-D5QaNAMe.es.js";
|
|
36
36
|
import { S as tr } from "./chunks/separator-D7elp8bN.es.js";
|
|
37
37
|
import { A as or, d as nr, c as ar, e as sr, b as ir, a as ur } from "./chunks/accordion-C4MjwWsC.es.js";
|
|
38
38
|
import { A as cr, d as fr, c as dr, e as pr, a as mr, b as yr } from "./chunks/alert-C_eKOpkm.es.js";
|
|
@@ -47,7 +47,7 @@ import { S as Nr } from "./chunks/search-input-DkFkEdiE.es.js";
|
|
|
47
47
|
import { S as jr } from "./chunks/split-button-Bczcosj2.es.js";
|
|
48
48
|
import { T as qr } from "./chunks/time-input-CwfMLg_y.es.js";
|
|
49
49
|
import { M as zr } from "./chunks/multiline-text-input-BrE5zqv5.es.js";
|
|
50
|
-
import { M as $r } from "./chunks/money-input-
|
|
50
|
+
import { M as $r } from "./chunks/money-input-DvR9Nnz5.es.js";
|
|
51
51
|
import { R as Jr, b as Qr, a as Yr } from "./chunks/radio-input-8sawPicQ.es.js";
|
|
52
52
|
import { S as eo } from "./chunks/switch-D_NMKG3Q.es.js";
|
|
53
53
|
import { T as ro } from "./chunks/tag-group-uIKmx4eU.es.js";
|
|
@@ -62,10 +62,10 @@ import { M as ho, c as _o, d as To, a as wo, e as So, g as Eo, f as ko, b as Do
|
|
|
62
62
|
import { D as Io } from "./chunks/date-range-picker-BICRnCsn.es.js";
|
|
63
63
|
import { T as Lo } from "./chunks/toolbar-DXDZ5G0Q.es.js";
|
|
64
64
|
import { D as Po, e as Bo, g as Fo, d as Ho, i as Ko, h as Oo, c as No, j as Uo, a as jo, f as Go, k as qo, b as Vo } from "./chunks/data-table-0hNRYKT3.es.js";
|
|
65
|
-
import { P as Wo } from "./chunks/pagination-
|
|
65
|
+
import { P as Wo } from "./chunks/pagination-2Zl9bHfw.es.js";
|
|
66
66
|
import { D as Xo } from "./chunks/drawer-wpiy6Y4h.es.js";
|
|
67
67
|
import { T as Qo, c as Yo, b as Zo, e as en, d as tn, a as rn } from "./chunks/tabs-UlU9sGFI.es.js";
|
|
68
|
-
import { L as nn } from "./chunks/localized-field-
|
|
68
|
+
import { L as nn } from "./chunks/localized-field-COJ9aoma.es.js";
|
|
69
69
|
import "react/jsx-runtime";
|
|
70
70
|
function L() {
|
|
71
71
|
return L = Object.assign ? Object.assign.bind() : function(e) {
|
package/dist/select.d.ts
CHANGED
|
@@ -12,23 +12,124 @@ import { SelectProps } from 'react-aria-components';
|
|
|
12
12
|
import { SelectRootProps as SelectRootProps_2 } from './select.types';
|
|
13
13
|
import { SlotRecipeDefinition } from '@chakra-ui/react';
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Select
|
|
17
|
+
* ============================================================
|
|
18
|
+
* A versatile select component for choosing one or more options from a list.
|
|
19
|
+
* Features full keyboard accessibility and WCAG 2.1 AA compliance.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <Select.Root>
|
|
24
|
+
* <Select.Options placeholder="Select an option">
|
|
25
|
+
* <Select.Option id="1">Option 1</Select.Option>
|
|
26
|
+
* <Select.Option id="2">Option 2</Select.Option>
|
|
27
|
+
* <Select.Option id="3">Option 3</Select.Option>
|
|
28
|
+
* </Select.Options>
|
|
29
|
+
* </Select.Root>
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @see https://nimbus-documentation.vercel.app/components/inputs/select
|
|
33
|
+
*/
|
|
15
34
|
export declare const Select: {
|
|
35
|
+
/**
|
|
36
|
+
* # Select.Root
|
|
37
|
+
*
|
|
38
|
+
* The root component that provides context and state management for the select.
|
|
39
|
+
* This component must wrap all select parts (Options, Option, etc.) and provides
|
|
40
|
+
* the select state, variant styling context, and selection management.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <Select.Root>
|
|
45
|
+
* <Select.Options placeholder="Choose...">
|
|
46
|
+
* <Select.Option id="apple">Apple</Select.Option>
|
|
47
|
+
* <Select.Option id="orange">Orange</Select.Option>
|
|
48
|
+
* </Select.Options>
|
|
49
|
+
* </Select.Root>
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
16
52
|
Root: {
|
|
17
53
|
({ ref: forwardedRef, children, leadingElement, isLoading, isDisabled, isClearable, ...props }: SelectRootProps_2): JSX.Element;
|
|
18
54
|
displayName: string;
|
|
19
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* # Select.Options
|
|
58
|
+
*
|
|
59
|
+
* The trigger button and dropdown container for select options.
|
|
60
|
+
* Displays the selected value and opens the options list when activated.
|
|
61
|
+
*
|
|
62
|
+
* This component handles the visual presentation of the select, including
|
|
63
|
+
* the trigger button, selected value display, dropdown icon, and the
|
|
64
|
+
* popover containing options.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```tsx
|
|
68
|
+
* <Select.Root>
|
|
69
|
+
* <Select.Options
|
|
70
|
+
* placeholder="Select fruit"
|
|
71
|
+
* label="Favorite Fruit"
|
|
72
|
+
* >
|
|
73
|
+
* <Select.Option id="apple">Apple</Select.Option>
|
|
74
|
+
* <Select.Option id="banana">Banana</Select.Option>
|
|
75
|
+
* </Select.Options>
|
|
76
|
+
* </Select.Root>
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
20
79
|
Options: {
|
|
21
80
|
<T extends object>(props: SelectOptionsProps_2<T> & {
|
|
22
81
|
ref?: React.Ref<HTMLDivElement>;
|
|
23
82
|
}): JSX.Element;
|
|
24
83
|
displayName: string;
|
|
25
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* # Select.Option
|
|
87
|
+
*
|
|
88
|
+
* An individual selectable option within the select dropdown.
|
|
89
|
+
* Represents a single choice that can be selected by the user.
|
|
90
|
+
*
|
|
91
|
+
* Options automatically handle selection state, keyboard navigation,
|
|
92
|
+
* and visual feedback for hover and selection states.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <Select.Options>
|
|
97
|
+
* <Select.Option id="red" textValue="Red">
|
|
98
|
+
* 🔴 Red
|
|
99
|
+
* </Select.Option>
|
|
100
|
+
* <Select.Option id="blue" textValue="Blue">
|
|
101
|
+
* 🔵 Blue
|
|
102
|
+
* </Select.Option>
|
|
103
|
+
* </Select.Options>
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
26
106
|
Option: {
|
|
27
|
-
|
|
28
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
29
|
-
}): JSX.Element;
|
|
107
|
+
(props: SelectOptionProps_2): JSX.Element;
|
|
30
108
|
displayName: string;
|
|
31
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* # Select.OptionGroup
|
|
112
|
+
*
|
|
113
|
+
* A container for grouping related options with an optional label.
|
|
114
|
+
* Provides visual separation and semantic grouping of options.
|
|
115
|
+
*
|
|
116
|
+
* Option groups help organize large lists of options into logical
|
|
117
|
+
* categories with proper accessibility support.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```tsx
|
|
121
|
+
* <Select.Options>
|
|
122
|
+
* <Select.OptionGroup label="Fruits">
|
|
123
|
+
* <Select.Option id="apple">Apple</Select.Option>
|
|
124
|
+
* <Select.Option id="banana">Banana</Select.Option>
|
|
125
|
+
* </Select.OptionGroup>
|
|
126
|
+
* <Select.OptionGroup label="Vegetables">
|
|
127
|
+
* <Select.Option id="carrot">Carrot</Select.Option>
|
|
128
|
+
* <Select.Option id="broccoli">Broccoli</Select.Option>
|
|
129
|
+
* </Select.OptionGroup>
|
|
130
|
+
* </Select.Options>
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
32
133
|
OptionGroup: {
|
|
33
134
|
<T extends object>(props: SelectOptionGroupProps_2<T> & {
|
|
34
135
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -38,9 +139,7 @@ export declare const Select: {
|
|
|
38
139
|
};
|
|
39
140
|
|
|
40
141
|
export declare const _SelectOption: {
|
|
41
|
-
|
|
42
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
43
|
-
}): JSX.Element;
|
|
142
|
+
(props: SelectOptionProps): JSX.Element;
|
|
44
143
|
displayName: string;
|
|
45
144
|
};
|
|
46
145
|
|
|
@@ -59,7 +158,11 @@ export declare interface SelectOptionGroupProps<T> extends ListBoxSectionProps<T
|
|
|
59
158
|
declare interface SelectOptionGroupSlotProps extends HTMLChakraProps<"div"> {
|
|
60
159
|
}
|
|
61
160
|
|
|
62
|
-
export declare interface SelectOptionProps
|
|
161
|
+
export declare interface SelectOptionProps extends Omit<ListBoxItemProps, "onClick" | "translate" | "onBlur" | "onFocus" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onMouseUp">, Omit<SelectOptionSlotProps, keyof ListBoxItemProps> {
|
|
162
|
+
/**
|
|
163
|
+
* React ref to be forwarded to the option element
|
|
164
|
+
*/
|
|
165
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
63
166
|
}
|
|
64
167
|
|
|
65
168
|
export declare const _SelectOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools/nimbus",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251013071647",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
"vite-plugin-dts": "^4.5.4",
|
|
95
95
|
"vite-tsconfig-paths": "^5.1.4",
|
|
96
96
|
"vitest": "^3.2.4",
|
|
97
|
-
"@commercetools/nimbus-icons": "^0.0.0-canary-
|
|
98
|
-
"@commercetools/nimbus-tokens": "^0.0.0-canary-
|
|
97
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20251013071647",
|
|
98
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20251013071647"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
101
|
"@chakra-ui/react": "^3.27.1",
|
|
102
102
|
"react": "19.x",
|
|
103
103
|
"react-intl": "7.x",
|
|
104
|
-
"@commercetools/nimbus-icons": "^0.0.0-canary-
|
|
105
|
-
"@commercetools/nimbus-tokens": "^0.0.0-canary-
|
|
104
|
+
"@commercetools/nimbus-icons": "^0.0.0-canary-20251013071647",
|
|
105
|
+
"@commercetools/nimbus-tokens": "^0.0.0-canary-20251013071647"
|
|
106
106
|
},
|
|
107
107
|
"scripts": {
|
|
108
108
|
"build": "pnpm run build-theme-typings && pnpm run build:lib",
|