@flikk/ui 1.0.0-beta.32 → 1.0.0-beta.33
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/CHANGELOG.md +202 -0
- package/dist/components/ai/AgentRequest/AgentRequest.theme.js +1 -1
- package/dist/components/core/Button/Button.theme.js +3 -3
- package/dist/components/core/Pill/Pill.js +32 -17
- package/dist/components/core/Pill/Pill.types.d.ts +14 -1
- package/dist/components/core/SlidingNumber/SlidingNumber.d.ts +8 -0
- package/dist/components/core/SlidingNumber/SlidingNumber.js +12 -3
- package/dist/components/forms/ColorPicker/ColorPicker.js +45 -3
- package/dist/components/forms/ColorPicker/ColorPickerBody.js +8 -4
- package/dist/components/forms/Combobox/Combobox.js +8 -4
- package/dist/components/forms/Combobox/Combobox.theme.js +9 -0
- package/dist/components/forms/Combobox/Combobox.types.d.ts +13 -0
- package/dist/components/forms/DatePicker/DatePicker.js +19 -12
- package/dist/components/forms/DatePicker/DatePicker.theme.js +5 -0
- package/dist/components/forms/DatePicker/DatePicker.types.d.ts +8 -0
- package/dist/components/forms/DatePicker/DatePickerContext.d.ts +0 -1
- package/dist/components/forms/DatePicker/DatePickerTrigger.js +5 -3
- package/dist/components/forms/DateRangePicker/DateRangePicker.theme.js +5 -0
- package/dist/components/forms/DateRangePicker/DateRangePicker.types.d.ts +8 -0
- package/dist/components/forms/DateRangePicker/DateRangePickerTrigger.js +5 -3
- package/dist/components/forms/Input/Input.js +17 -12
- package/dist/components/forms/Input/Input.theme.js +10 -0
- package/dist/components/forms/Input/Input.types.d.ts +14 -0
- package/dist/components/forms/InputAddress/InputAddress.js +5 -5
- package/dist/components/forms/InputAddress/InputAddress.types.d.ts +7 -0
- package/dist/components/forms/InputCounter/InputCounter.js +194 -17
- package/dist/components/forms/InputCounter/InputCounter.theme.d.ts +12 -0
- package/dist/components/forms/InputCounter/InputCounter.theme.js +92 -2
- package/dist/components/forms/InputCounter/InputCounter.types.d.ts +47 -4
- package/dist/components/forms/InputCreditCard/InputCreditCard.js +4 -4
- package/dist/components/forms/InputCreditCard/InputCreditCard.types.d.ts +7 -0
- package/dist/components/forms/Mention/Mention.js +13 -11
- package/dist/components/forms/RichTextEditor/RichTextEditor.js +12 -3
- package/dist/components/forms/Select/Select.js +15 -8
- package/dist/components/forms/Select/Select.theme.js +9 -1
- package/dist/components/forms/Select/Select.types.d.ts +16 -1
- package/dist/components/forms/Textarea/Textarea.js +14 -25
- package/dist/components/forms/TimePicker/TimePicker.theme.js +9 -0
- package/dist/components/forms/TimePicker/TimePicker.types.d.ts +11 -0
- package/dist/components/forms/TimePicker/TimePickerTrigger.js +7 -5
- package/dist/components/forms/forms.theme.d.ts +57 -0
- package/dist/components/forms/forms.theme.js +83 -8
- package/dist/components/generative/registry.js +1 -0
- package/dist/components/generative/schema.generated.js +21 -1
- package/dist/generative.schema.json +21 -1
- package/dist/registry.json +108 -17
- package/dist/styles.css +1 -1
- package/dist/tools.json +21 -1
- package/dist/utils/composeEventHandlers.d.ts +19 -0
- package/dist/utils/composeEventHandlers.js +26 -0
- package/dist/utils/composeEventHandlers.test.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/styles/theme.css +33 -9
|
@@ -1762,6 +1762,21 @@
|
|
|
1762
1762
|
"required": true,
|
|
1763
1763
|
"description": "Current counter value (controlled)"
|
|
1764
1764
|
},
|
|
1765
|
+
"size": {
|
|
1766
|
+
"kind": "enum",
|
|
1767
|
+
"options": [
|
|
1768
|
+
"sm",
|
|
1769
|
+
"md",
|
|
1770
|
+
"lg"
|
|
1771
|
+
],
|
|
1772
|
+
"default": "md",
|
|
1773
|
+
"description": "Control size, drawn from the shared `--form-*` scale so a counter lines up"
|
|
1774
|
+
},
|
|
1775
|
+
"editable": {
|
|
1776
|
+
"kind": "boolean",
|
|
1777
|
+
"default": true,
|
|
1778
|
+
"description": "Whether clicking the number swaps it for a text field so the value can be"
|
|
1779
|
+
},
|
|
1765
1780
|
"state": {
|
|
1766
1781
|
"kind": "enum",
|
|
1767
1782
|
"options": [
|
|
@@ -2548,7 +2563,12 @@
|
|
|
2548
2563
|
},
|
|
2549
2564
|
"selected": {
|
|
2550
2565
|
"kind": "boolean",
|
|
2551
|
-
"description": "Whether the pill is selected
|
|
2566
|
+
"description": "Whether the pill is selected — CONTROLLED. Passing it makes the prop"
|
|
2567
|
+
},
|
|
2568
|
+
"defaultSelected": {
|
|
2569
|
+
"kind": "boolean",
|
|
2570
|
+
"default": false,
|
|
2571
|
+
"description": "Initial selection for an UNCONTROLLED pill, which then owns its own state."
|
|
2552
2572
|
},
|
|
2553
2573
|
"readOnly": {
|
|
2554
2574
|
"kind": "boolean",
|
package/dist/registry.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"libVersion": "1.0.0-beta.
|
|
4
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"libVersion": "1.0.0-beta.33",
|
|
4
|
+
"generatedAt": "2026-08-20T12:02:58.656Z",
|
|
5
5
|
"componentCount": 128,
|
|
6
6
|
"components": [
|
|
7
7
|
{
|
|
@@ -782,21 +782,21 @@
|
|
|
782
782
|
"--button-py-sm",
|
|
783
783
|
"--button-text-size-sm",
|
|
784
784
|
"--button-line-height-sm",
|
|
785
|
-
"--button-icon-
|
|
785
|
+
"--button-icon-square-sm",
|
|
786
786
|
"--button-icon-p-sm",
|
|
787
787
|
"--button-min-h-md",
|
|
788
788
|
"--button-px-md",
|
|
789
789
|
"--button-py-md",
|
|
790
790
|
"--button-text-size-md",
|
|
791
791
|
"--button-line-height-md",
|
|
792
|
-
"--button-icon-
|
|
792
|
+
"--button-icon-square-md",
|
|
793
793
|
"--button-icon-p-md",
|
|
794
794
|
"--button-min-h-lg",
|
|
795
795
|
"--button-px-lg",
|
|
796
796
|
"--button-py-lg",
|
|
797
797
|
"--button-text-size-lg",
|
|
798
798
|
"--button-line-height-lg",
|
|
799
|
-
"--button-icon-
|
|
799
|
+
"--button-icon-square-lg",
|
|
800
800
|
"--button-icon-p-lg"
|
|
801
801
|
],
|
|
802
802
|
"codeExample": "import { Button } from \"@flikk/ui\";\n\n<Button variant=\"filled\">Button</Button>"
|
|
@@ -2608,7 +2608,12 @@
|
|
|
2608
2608
|
},
|
|
2609
2609
|
"selected": {
|
|
2610
2610
|
"type": "boolean",
|
|
2611
|
-
"description": "Whether the pill is selected (
|
|
2611
|
+
"description": "Whether the pill is selected — CONTROLLED. Passing it makes the prop authoritative: the pill renders from it on every render and keeps no copy, so a parent that rejects or normalizes a change (a single-choice group refusing to deselect the active option) stays truthfully reflected. Mutually exclusive with `defaultSelected` (dev-warns if both are passed)."
|
|
2612
|
+
},
|
|
2613
|
+
"defaultSelected": {
|
|
2614
|
+
"type": "boolean",
|
|
2615
|
+
"description": "Initial selection for an UNCONTROLLED pill, which then owns its own state. Ignored when `selected` is provided.",
|
|
2616
|
+
"default": "false"
|
|
2612
2617
|
},
|
|
2613
2618
|
"onSelect": {
|
|
2614
2619
|
"type": "(selected: boolean) => void",
|
|
@@ -5079,6 +5084,12 @@
|
|
|
5079
5084
|
"iconStartStyle",
|
|
5080
5085
|
"iconEndStyle",
|
|
5081
5086
|
"iconPadding",
|
|
5087
|
+
"iconStartStyles",
|
|
5088
|
+
"iconEndStyles",
|
|
5089
|
+
"iconSizes",
|
|
5090
|
+
"iconPaddings",
|
|
5091
|
+
"left",
|
|
5092
|
+
"right",
|
|
5082
5093
|
"clearButtonStyle",
|
|
5083
5094
|
"clearIconStyle",
|
|
5084
5095
|
"dropdownStyle",
|
|
@@ -5276,6 +5287,9 @@
|
|
|
5276
5287
|
"triggerFocusStates",
|
|
5277
5288
|
"iconEndStyle",
|
|
5278
5289
|
"iconEndPadding",
|
|
5290
|
+
"iconEndStyles",
|
|
5291
|
+
"iconEndPaddings",
|
|
5292
|
+
"iconSizes",
|
|
5279
5293
|
"bodyStyle",
|
|
5280
5294
|
"bodyWithPresetsStyle",
|
|
5281
5295
|
"presetsContainerStyle",
|
|
@@ -5480,6 +5494,9 @@
|
|
|
5480
5494
|
"triggerFocusStates",
|
|
5481
5495
|
"iconEndStyle",
|
|
5482
5496
|
"iconEndPadding",
|
|
5497
|
+
"iconEndStyles",
|
|
5498
|
+
"iconEndPaddings",
|
|
5499
|
+
"iconSizes",
|
|
5483
5500
|
"bodyStyle",
|
|
5484
5501
|
"presetsContainerStyle",
|
|
5485
5502
|
"presetButtonStyle",
|
|
@@ -5835,6 +5852,12 @@
|
|
|
5835
5852
|
"helperText",
|
|
5836
5853
|
"iconStartStyle",
|
|
5837
5854
|
"iconEndStyle",
|
|
5855
|
+
"iconStartStyles",
|
|
5856
|
+
"iconEndStyles",
|
|
5857
|
+
"iconSizes",
|
|
5858
|
+
"iconPaddings",
|
|
5859
|
+
"left",
|
|
5860
|
+
"right",
|
|
5838
5861
|
"iconPadding",
|
|
5839
5862
|
"contentStyle",
|
|
5840
5863
|
"sm",
|
|
@@ -5917,6 +5940,16 @@
|
|
|
5917
5940
|
"invalid"
|
|
5918
5941
|
]
|
|
5919
5942
|
},
|
|
5943
|
+
"size": {
|
|
5944
|
+
"type": "InputProps['size']",
|
|
5945
|
+
"description": "Size of every field in the group, from the shared `--form-*` scale, so the address block lines up with the Inputs and Selects around it. A per-field `*InputProps.size` still wins.",
|
|
5946
|
+
"default": "md",
|
|
5947
|
+
"options": [
|
|
5948
|
+
"sm",
|
|
5949
|
+
"md",
|
|
5950
|
+
"lg"
|
|
5951
|
+
]
|
|
5952
|
+
},
|
|
5920
5953
|
"errorMessage": {
|
|
5921
5954
|
"type": "React.ReactNode",
|
|
5922
5955
|
"description": "Consolidated error message shown below all fields when `state=\"invalid\"`"
|
|
@@ -6014,6 +6047,21 @@
|
|
|
6014
6047
|
"type": "(value: number) => void",
|
|
6015
6048
|
"description": "Callback when value changes"
|
|
6016
6049
|
},
|
|
6050
|
+
"size": {
|
|
6051
|
+
"type": "InputCounterSize",
|
|
6052
|
+
"description": "Control size, drawn from the shared `--form-*` scale so a counter lines up with the Input/Select/Combobox it sits beside.",
|
|
6053
|
+
"default": "md",
|
|
6054
|
+
"options": [
|
|
6055
|
+
"sm",
|
|
6056
|
+
"md",
|
|
6057
|
+
"lg"
|
|
6058
|
+
]
|
|
6059
|
+
},
|
|
6060
|
+
"editable": {
|
|
6061
|
+
"type": "boolean",
|
|
6062
|
+
"description": "Whether clicking the number swaps it for a text field so the value can be typed directly. Committed on Enter or blur; Escape reverts.",
|
|
6063
|
+
"default": "true"
|
|
6064
|
+
},
|
|
6017
6065
|
"state": {
|
|
6018
6066
|
"type": "InputCounterState",
|
|
6019
6067
|
"description": "Validation/interaction state",
|
|
@@ -6055,10 +6103,6 @@
|
|
|
6055
6103
|
"type": "number",
|
|
6056
6104
|
"description": "Number of decimal places to display (auto-detected from step if not specified)"
|
|
6057
6105
|
},
|
|
6058
|
-
"formatNumber": {
|
|
6059
|
-
"type": "(value: number) => string",
|
|
6060
|
-
"description": "Custom number formatter (e.g., for decimals or localization)"
|
|
6061
|
-
},
|
|
6062
6106
|
"buttonProps": {
|
|
6063
6107
|
"type": "Omit<ButtonProps, 'onClick'>",
|
|
6064
6108
|
"description": "Props to pass to increment/decrement buttons (omitting onClick)"
|
|
@@ -6074,14 +6118,43 @@
|
|
|
6074
6118
|
},
|
|
6075
6119
|
"themeKeys": [
|
|
6076
6120
|
"baseStyle",
|
|
6121
|
+
"invalidStyle",
|
|
6122
|
+
"disabledStyle",
|
|
6123
|
+
"numberDisabledStyle",
|
|
6077
6124
|
"buttonWrapperStyle",
|
|
6078
|
-
"numberStyle"
|
|
6125
|
+
"numberStyle",
|
|
6126
|
+
"valueSlotStyle",
|
|
6127
|
+
"sizes",
|
|
6128
|
+
"sm",
|
|
6129
|
+
"md",
|
|
6130
|
+
"lg",
|
|
6131
|
+
"textSizes",
|
|
6132
|
+
"sm",
|
|
6133
|
+
"md",
|
|
6134
|
+
"lg",
|
|
6135
|
+
"stepperSizes",
|
|
6136
|
+
"sm",
|
|
6137
|
+
"md",
|
|
6138
|
+
"lg",
|
|
6139
|
+
"stepperIconSizes",
|
|
6140
|
+
"sm",
|
|
6141
|
+
"md",
|
|
6142
|
+
"lg",
|
|
6143
|
+
"buttonSizes",
|
|
6144
|
+
"sm",
|
|
6145
|
+
"md",
|
|
6146
|
+
"lg",
|
|
6147
|
+
"editFieldStyle"
|
|
6079
6148
|
],
|
|
6080
6149
|
"cssVariables": [
|
|
6081
|
-
"--
|
|
6082
|
-
"--
|
|
6150
|
+
"--field-fill",
|
|
6151
|
+
"--motion-duration-fast",
|
|
6152
|
+
"--color-text-disabled",
|
|
6153
|
+
"--color-text-primary",
|
|
6154
|
+
"--form-min-h-sm",
|
|
6083
6155
|
"--form-radius",
|
|
6084
|
-
"--
|
|
6156
|
+
"--form-min-h-md",
|
|
6157
|
+
"--form-min-h-lg"
|
|
6085
6158
|
],
|
|
6086
6159
|
"codeExample": "import { InputCounter } from \"@flikk/ui\";\nimport { useState } from \"react\";\n\nconst [count, setCount] = useState(1);\n\n<InputCounter\n value={count}\n onChange={setCount}\n min={0}\n max={10}\n aria-label=\"Product quantity\"\n/>"
|
|
6087
6160
|
},
|
|
@@ -6104,6 +6177,16 @@
|
|
|
6104
6177
|
"invalid"
|
|
6105
6178
|
]
|
|
6106
6179
|
},
|
|
6180
|
+
"size": {
|
|
6181
|
+
"type": "InputProps['size']",
|
|
6182
|
+
"description": "Size of every field in the group, from the shared `--form-*` scale, so the card block lines up with the Inputs and Selects around it. A per-field `*InputProps.size` still wins.",
|
|
6183
|
+
"default": "md",
|
|
6184
|
+
"options": [
|
|
6185
|
+
"sm",
|
|
6186
|
+
"md",
|
|
6187
|
+
"lg"
|
|
6188
|
+
]
|
|
6189
|
+
},
|
|
6107
6190
|
"errorMessage": {
|
|
6108
6191
|
"type": "React.ReactNode",
|
|
6109
6192
|
"description": "Consolidated error message shown below all fields when `state=\"invalid\"`"
|
|
@@ -7180,7 +7263,12 @@
|
|
|
7180
7263
|
"helperTextStyle",
|
|
7181
7264
|
"helperTextStates",
|
|
7182
7265
|
"iconStartStyle",
|
|
7266
|
+
"iconStartStyles",
|
|
7267
|
+
"iconStartPaddings",
|
|
7183
7268
|
"iconEndStyle",
|
|
7269
|
+
"iconEndStyles",
|
|
7270
|
+
"iconEndSizes",
|
|
7271
|
+
"iconEndPaddings",
|
|
7184
7272
|
"checkIconStyle",
|
|
7185
7273
|
"iconPadding",
|
|
7186
7274
|
"chipContainerStyle",
|
|
@@ -12088,6 +12176,9 @@
|
|
|
12088
12176
|
"--form-line-height-sm",
|
|
12089
12177
|
"--form-line-height-md",
|
|
12090
12178
|
"--form-line-height-lg",
|
|
12179
|
+
"--form-icon-size-sm",
|
|
12180
|
+
"--form-icon-size-md",
|
|
12181
|
+
"--form-icon-size-lg",
|
|
12091
12182
|
"--form-min-h-xl",
|
|
12092
12183
|
"--otp-slot-size-sm",
|
|
12093
12184
|
"--otp-slot-size-md",
|
|
@@ -12133,9 +12224,9 @@
|
|
|
12133
12224
|
"--button-icon-p-sm",
|
|
12134
12225
|
"--button-icon-p-md",
|
|
12135
12226
|
"--button-icon-p-lg",
|
|
12136
|
-
"--button-icon-
|
|
12137
|
-
"--button-icon-
|
|
12138
|
-
"--button-icon-
|
|
12227
|
+
"--button-icon-square-sm",
|
|
12228
|
+
"--button-icon-square-md",
|
|
12229
|
+
"--button-icon-square-lg",
|
|
12139
12230
|
"--badge-radius",
|
|
12140
12231
|
"--badge-radius-sm",
|
|
12141
12232
|
"--badge-radius-md",
|