@cerberus-design/react 1.0.0-rc.5 → 1.0.0-rc.7
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/panda.buildinfo.json +349 -0
- package/package.json +8 -5
- package/src/components/AnimatingUploadIcon.tsx +0 -83
- package/src/components/accordion/index.ts +0 -3
- package/src/components/accordion/item-group.tsx +0 -70
- package/src/components/accordion/item-indicator.tsx +0 -27
- package/src/components/accordion/parts.ts +0 -53
- package/src/components/accordion/primitives.tsx +0 -86
- package/src/components/admonition/admonition.tsx +0 -62
- package/src/components/admonition/index.ts +0 -3
- package/src/components/admonition/match-avatar.tsx +0 -52
- package/src/components/admonition/parts.ts +0 -53
- package/src/components/admonition/primitives.tsx +0 -77
- package/src/components/avatar/avatar.tsx +0 -51
- package/src/components/avatar/index.ts +0 -5
- package/src/components/avatar/parts.ts +0 -37
- package/src/components/avatar/primitives.tsx +0 -38
- package/src/components/button/button.tsx +0 -62
- package/src/components/button/index.ts +0 -3
- package/src/components/button/parts.ts +0 -32
- package/src/components/button/primitives.tsx +0 -41
- package/src/components/carousel/carousel.tsx +0 -55
- package/src/components/carousel/index.ts +0 -3
- package/src/components/carousel/parts.ts +0 -71
- package/src/components/carousel/primitives.ts +0 -58
- package/src/components/checkbox/checkbox-icon.tsx +0 -39
- package/src/components/checkbox/checkbox.tsx +0 -42
- package/src/components/checkbox/index.ts +0 -3
- package/src/components/checkbox/parts.ts +0 -59
- package/src/components/checkbox/primitives.tsx +0 -77
- package/src/components/circular-progress/circular-progress.tsx +0 -49
- package/src/components/circular-progress/index.ts +0 -2
- package/src/components/circular-progress/primitives.ts +0 -80
- package/src/components/clipboard/copy-indicator.tsx +0 -22
- package/src/components/clipboard/copy-text.tsx +0 -13
- package/src/components/clipboard/index.ts +0 -2
- package/src/components/clipboard/parts.ts +0 -74
- package/src/components/clipboard/primitives.ts +0 -56
- package/src/components/clipboard/trigger.tsx +0 -14
- package/src/components/collapsible/index.ts +0 -2
- package/src/components/collapsible/parts.ts +0 -53
- package/src/components/collapsible/primitives.tsx +0 -53
- package/src/components/combobox/combobox.tsx +0 -67
- package/src/components/combobox/index.ts +0 -6
- package/src/components/combobox/item-group.tsx +0 -19
- package/src/components/combobox/item.tsx +0 -30
- package/src/components/combobox/parts.ts +0 -101
- package/src/components/combobox/primitives.tsx +0 -146
- package/src/components/combobox/use-stateful-collection.ts +0 -65
- package/src/components/cta-dialog/context.tsx +0 -38
- package/src/components/cta-dialog/index.ts +0 -2
- package/src/components/cta-dialog/provider.tsx +0 -186
- package/src/components/cta-dialog/trigger-item.tsx +0 -54
- package/src/components/cta-dialog/utils.ts +0 -57
- package/src/components/date-picker/calendar.tsx +0 -47
- package/src/components/date-picker/content.tsx +0 -21
- package/src/components/date-picker/date-picker.tsx +0 -20
- package/src/components/date-picker/day-view.tsx +0 -82
- package/src/components/date-picker/index.ts +0 -16
- package/src/components/date-picker/input.tsx +0 -26
- package/src/components/date-picker/month-view.tsx +0 -49
- package/src/components/date-picker/parts.ts +0 -167
- package/src/components/date-picker/primitives.tsx +0 -235
- package/src/components/date-picker/range-input.tsx +0 -38
- package/src/components/date-picker/trigger.tsx +0 -28
- package/src/components/date-picker/view-control-group.tsx +0 -54
- package/src/components/date-picker/year-view.tsx +0 -47
- package/src/components/dialog/close-icon-trigger.tsx +0 -36
- package/src/components/dialog/dialog.tsx +0 -42
- package/src/components/dialog/index.ts +0 -8
- package/src/components/dialog/parts.ts +0 -71
- package/src/components/dialog/primitives.tsx +0 -83
- package/src/components/feature-flag/feature-flag.tsx +0 -21
- package/src/components/feature-flag/index.ts +0 -1
- package/src/components/field/error-text.tsx +0 -19
- package/src/components/field/field.tsx +0 -93
- package/src/components/field/helper-text.tsx +0 -20
- package/src/components/field/index.ts +0 -7
- package/src/components/field/input.tsx +0 -47
- package/src/components/field/parts.ts +0 -77
- package/src/components/field/primitives.tsx +0 -135
- package/src/components/field/start-indicator.tsx +0 -23
- package/src/components/field/status-indicator.tsx +0 -58
- package/src/components/fieldset/fieldset.tsx +0 -54
- package/src/components/fieldset/index.ts +0 -3
- package/src/components/fieldset/parts.ts +0 -47
- package/src/components/fieldset/primitives.tsx +0 -48
- package/src/components/file-upload/file-status.tsx +0 -271
- package/src/components/file-upload/file-uploader.tsx +0 -60
- package/src/components/file-upload/helpers.ts +0 -28
- package/src/components/file-upload/img-preview.tsx +0 -41
- package/src/components/file-upload/index.ts +0 -6
- package/src/components/file-upload/parts.tsx +0 -132
- package/src/components/file-upload/primitives.ts +0 -161
- package/src/components/file-upload/utils.ts +0 -20
- package/src/components/for/for.tsx +0 -38
- package/src/components/for/index.ts +0 -1
- package/src/components/group/index.ts +0 -1
- package/src/components/group/primitives.ts +0 -7
- package/src/components/icon-button/button.tsx +0 -41
- package/src/components/icon-button/index.tsx +0 -2
- package/src/components/icon-button/primitives.ts +0 -19
- package/src/components/menu/index.ts +0 -2
- package/src/components/menu/menu.tsx +0 -144
- package/src/components/menu/primitives.ts +0 -84
- package/src/components/notifications/center.tsx +0 -88
- package/src/components/notifications/close-trigger.tsx +0 -21
- package/src/components/notifications/index.ts +0 -5
- package/src/components/notifications/match-icon.tsx +0 -41
- package/src/components/notifications/parts.ts +0 -53
- package/src/components/notifications/primitives.tsx +0 -66
- package/src/components/notifications/toaster.ts +0 -13
- package/src/components/notifications/types.ts +0 -44
- package/src/components/number-input/decrement-trigger.tsx +0 -16
- package/src/components/number-input/increment-trigger.tsx +0 -16
- package/src/components/number-input/index.ts +0 -3
- package/src/components/number-input/input.tsx +0 -33
- package/src/components/number-input/parts.ts +0 -65
- package/src/components/number-input/primitives.tsx +0 -74
- package/src/components/pagination/compact.tsx +0 -25
- package/src/components/pagination/index.ts +0 -6
- package/src/components/pagination/item-list.tsx +0 -34
- package/src/components/pagination/item.tsx +0 -6
- package/src/components/pagination/pagination.tsx +0 -53
- package/src/components/pagination/parts.ts +0 -65
- package/src/components/pagination/primitives.ts +0 -41
- package/src/components/pagination/triggers.tsx +0 -55
- package/src/components/pin-input/index.ts +0 -3
- package/src/components/pin-input/input.tsx +0 -22
- package/src/components/pin-input/parts.ts +0 -53
- package/src/components/pin-input/primitives.tsx +0 -46
- package/src/components/portal/index.ts +0 -1
- package/src/components/portal/portal.tsx +0 -28
- package/src/components/progress/index.ts +0 -2
- package/src/components/progress/primitives.ts +0 -37
- package/src/components/progress/progress-bar.tsx +0 -80
- package/src/components/radio/index.ts +0 -3
- package/src/components/radio/parts.ts +0 -65
- package/src/components/radio/primitives.tsx +0 -92
- package/src/components/radio/radio.tsx +0 -35
- package/src/components/rating/index.ts +0 -8
- package/src/components/rating/parts.tsx +0 -65
- package/src/components/rating/primitives.tsx +0 -64
- package/src/components/rating/rating.tsx +0 -75
- package/src/components/select/index.ts +0 -5
- package/src/components/select/option-group.tsx +0 -32
- package/src/components/select/option.tsx +0 -42
- package/src/components/select/parts.ts +0 -113
- package/src/components/select/primitives.tsx +0 -147
- package/src/components/select/select.tsx +0 -110
- package/src/components/show/index.ts +0 -1
- package/src/components/show/show.tsx +0 -48
- package/src/components/spinner/index.ts +0 -1
- package/src/components/spinner/spinner.tsx +0 -81
- package/src/components/split-button/button.tsx +0 -63
- package/src/components/split-button/index.tsx +0 -1
- package/src/components/switch/index.ts +0 -3
- package/src/components/switch/parts.ts +0 -53
- package/src/components/switch/primitives.tsx +0 -51
- package/src/components/switch/switch-indicator.tsx +0 -9
- package/src/components/switch/switch.tsx +0 -27
- package/src/components/table/index.ts +0 -3
- package/src/components/table/parts.ts +0 -83
- package/src/components/table/primitives.tsx +0 -115
- package/src/components/table/table.tsx +0 -73
- package/src/components/tabs/index.ts +0 -3
- package/src/components/tabs/parts.ts +0 -53
- package/src/components/tabs/primitives.tsx +0 -47
- package/src/components/tabs/tabs.tsx +0 -48
- package/src/components/tag/closable.tsx +0 -47
- package/src/components/tag/index.ts +0 -2
- package/src/components/tag/primitives.ts +0 -19
- package/src/components/tag/tag.tsx +0 -39
- package/src/components/text/index.ts +0 -1
- package/src/components/text/text.tsx +0 -55
- package/src/components/theme/index.ts +0 -1
- package/src/components/theme/theme.tsx +0 -34
- package/src/components/toggle/index.ts +0 -2
- package/src/components/toggle/parts.ts +0 -32
- package/src/components/toggle/primitives.tsx +0 -27
- package/src/components/tooltip/index.ts +0 -3
- package/src/components/tooltip/parts.ts +0 -59
- package/src/components/tooltip/primitives.ts +0 -56
- package/src/components/tooltip/tooltip.tsx +0 -46
- package/src/config/defineIcons.ts +0 -24
- package/src/config/icons/checkbox.icons.tsx +0 -98
- package/src/config/icons/default.ts +0 -69
- package/src/config/icons/pinned.icons.tsx +0 -31
- package/src/config/icons/sort.icons.tsx +0 -19
- package/src/config/index.ts +0 -41
- package/src/config/types.ts +0 -53
- package/src/context/cerberus.tsx +0 -53
- package/src/context/confirm-modal.tsx +0 -276
- package/src/context/feature-flags.tsx +0 -63
- package/src/context/field.tsx +0 -70
- package/src/context/navMenu.tsx +0 -89
- package/src/context/prompt-modal.tsx +0 -315
- package/src/context/theme.tsx +0 -83
- package/src/hooks/useModal.ts +0 -63
- package/src/hooks/useRootColors.ts +0 -72
- package/src/hooks/useTheme.ts +0 -121
- package/src/index.client.ts +0 -30
- package/src/index.ts +0 -76
- package/src/system/factory.ts +0 -32
- package/src/system/index.ts +0 -47
- package/src/system/primitive-factory.tsx +0 -180
- package/src/system/types.ts +0 -88
- package/src/types.ts +0 -23
- package/src/utils/index.ts +0 -51
- package/src/utils/localStorage.ts +0 -28
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.9.0",
|
|
3
|
+
"styles": {
|
|
4
|
+
"atomic": [
|
|
5
|
+
"display]___[value:flex",
|
|
6
|
+
"alignItems]___[value:flex-start",
|
|
7
|
+
"justifyContent]___[value:space-between",
|
|
8
|
+
"gap]___[value:md",
|
|
9
|
+
"flexDirection]___[value:column",
|
|
10
|
+
"width]___[value:full",
|
|
11
|
+
"alignItems]___[value:center",
|
|
12
|
+
"justifyContent]___[value:center",
|
|
13
|
+
"gap]___[value:8px",
|
|
14
|
+
"flexDirection]___[value:row",
|
|
15
|
+
"alignSelf]___[value:center",
|
|
16
|
+
"paddingBlockEnd]___[value:md",
|
|
17
|
+
"paddingTop]___[value:md",
|
|
18
|
+
"size]___[value:24",
|
|
19
|
+
"color]___[value:colorPalette.text.200",
|
|
20
|
+
"color]___[value:colorPalette.text.inverse]___[cond:_hover<___>_notDisabled",
|
|
21
|
+
"color]___[value:colorPalette.text.initial",
|
|
22
|
+
"color]___[value:colorPalette.text.100]___[cond:_hover<___>_notDisabled",
|
|
23
|
+
"width]___[value:1/2",
|
|
24
|
+
"position]___[value:relative",
|
|
25
|
+
"height]___[value:full",
|
|
26
|
+
"marginBlockStart]___[value:md",
|
|
27
|
+
"marginBlockEnd]___[value:lg",
|
|
28
|
+
"gap]___[value:xs",
|
|
29
|
+
"justifyContent]___[value:stretch",
|
|
30
|
+
"justifyContent]___[value:flex-start",
|
|
31
|
+
"marginBlockEnd]___[value:xs",
|
|
32
|
+
"textStyle]___[value:label-md",
|
|
33
|
+
"width]___[value:initial",
|
|
34
|
+
"userSelect]___[value:text",
|
|
35
|
+
"borderRadius]___[value:xs",
|
|
36
|
+
"borderColor]___[value:transparent",
|
|
37
|
+
"backgroundOrigin]___[value:border-box",
|
|
38
|
+
"backgroundClip]___[value:padding-box, border-box",
|
|
39
|
+
"backgroundColor]___[value:page.surface.initial",
|
|
40
|
+
"borderGradient]___[value:charon-light",
|
|
41
|
+
"color]___[value:page.text.initial",
|
|
42
|
+
"borderGradient]___[value:charon-dark",
|
|
43
|
+
"borderGradient]___[value:nyx-light",
|
|
44
|
+
"borderGradient]___[value:nyx-dark",
|
|
45
|
+
"borderGradient]___[value:amphiaraus-light",
|
|
46
|
+
"borderGradient]___[value:amphiaraus-dark",
|
|
47
|
+
"borderGradient]___[value:styx-light",
|
|
48
|
+
"borderGradient]___[value:styx-dark",
|
|
49
|
+
"borderGradient]___[value:thanatos-light",
|
|
50
|
+
"borderGradient]___[value:thanatos-dark",
|
|
51
|
+
"borderGradient]___[value:hades-light",
|
|
52
|
+
"borderGradient]___[value:hades-dark",
|
|
53
|
+
"borderGradient]___[value:asphodel-light",
|
|
54
|
+
"borderGradient]___[value:asphodel-dark",
|
|
55
|
+
"size]___[value:16",
|
|
56
|
+
"width]___[value:4",
|
|
57
|
+
"height]___[value:1em",
|
|
58
|
+
"width]___[value:1em",
|
|
59
|
+
"gap]___[value:xl",
|
|
60
|
+
"gap]___[value:lg",
|
|
61
|
+
"textAlign]___[value:center",
|
|
62
|
+
"height]___[value:2rem",
|
|
63
|
+
"paddingInline]___[value:md",
|
|
64
|
+
"srOnly]___[value:true",
|
|
65
|
+
"gap]___[value:0.12rem",
|
|
66
|
+
"textStyle]___[value:label-sm",
|
|
67
|
+
"color]___[value:page.text.100",
|
|
68
|
+
"flex]___[value:1",
|
|
69
|
+
"paddingBlock]___[value:sm",
|
|
70
|
+
"size]___[value:1rem",
|
|
71
|
+
"borderEndRadius]___[value:0]___[cond:& > *:first-child",
|
|
72
|
+
"marginInlineEnd]___[value:-1px]___[cond:& > *:first-child",
|
|
73
|
+
"borderRadius]___[value:0]___[cond:& > *:not(:first-child):not(:last-child)",
|
|
74
|
+
"marginInlineEnd]___[value:-1px]___[cond:& > *:not(:first-child):not(:last-child)",
|
|
75
|
+
"borderStartRadius]___[value:0]___[cond:& > *:last-child",
|
|
76
|
+
"borderBottomRadius]___[value:0!]___[cond:& > *:first-child",
|
|
77
|
+
"marginBottom]___[value:-1px]___[cond:& > *:first-child",
|
|
78
|
+
"borderRadius]___[value:0!]___[cond:& > *:not(:first-child):not(:last-child)",
|
|
79
|
+
"marginBottom]___[value:-1px]___[cond:& > *:not(:first-child):not(:last-child)",
|
|
80
|
+
"borderTopRadius]___[value:0!]___[cond:& > *:last-child",
|
|
81
|
+
"borderBottomRightRadius]___[value:0!]___[cond:& > :is([data-scope=\"icon-button\"])",
|
|
82
|
+
"paddingInlineEnd]___[value:0",
|
|
83
|
+
"transform]___[value:scaleX(-1)",
|
|
84
|
+
"transform]___[value:rotate(180deg)",
|
|
85
|
+
"colorPalette]___[value:page",
|
|
86
|
+
"colorPalette]___[value:action",
|
|
87
|
+
"colorPalette]___[value:secondary-action",
|
|
88
|
+
"colorPalette]___[value:info",
|
|
89
|
+
"colorPalette]___[value:success",
|
|
90
|
+
"colorPalette]___[value:warning",
|
|
91
|
+
"colorPalette]___[value:danger",
|
|
92
|
+
"backgroundColor]___[value:page.surface.200",
|
|
93
|
+
"backgroundColor]___[value:page.surface.100",
|
|
94
|
+
"borderColor]___[value:page.border.200"
|
|
95
|
+
],
|
|
96
|
+
"recipes": {
|
|
97
|
+
"dialog": [
|
|
98
|
+
"size]___[value:md]___[recipe:dialog",
|
|
99
|
+
"size]___[value:sm]___[recipe:dialog",
|
|
100
|
+
"size]___[value:auto]___[recipe:dialog",
|
|
101
|
+
"size]___[value:xs]___[recipe:dialog",
|
|
102
|
+
"size]___[value:lg]___[recipe:dialog",
|
|
103
|
+
"size]___[value:full]___[recipe:dialog"
|
|
104
|
+
],
|
|
105
|
+
"avatar": [
|
|
106
|
+
"gradient]___[value:charon-light]___[recipe:avatar",
|
|
107
|
+
"size]___[value:md]___[recipe:avatar",
|
|
108
|
+
"shape]___[value:circle]___[recipe:avatar",
|
|
109
|
+
"gradient]___[value:hades-dark]___[recipe:avatar",
|
|
110
|
+
"size]___[value:sm]___[recipe:avatar",
|
|
111
|
+
"gradient]___[value:amphiaraus-dark]___[recipe:avatar",
|
|
112
|
+
"gradient]___[value:thanatos-dark]___[recipe:avatar",
|
|
113
|
+
"gradient]___[value:asphodel-light]___[recipe:avatar",
|
|
114
|
+
"gradient]___[value:hades-light]___[recipe:avatar",
|
|
115
|
+
"gradient]___[value:none]___[recipe:avatar",
|
|
116
|
+
"gradient]___[value:charon-dark]___[recipe:avatar",
|
|
117
|
+
"gradient]___[value:nyx-light]___[recipe:avatar",
|
|
118
|
+
"gradient]___[value:nyx-dark]___[recipe:avatar",
|
|
119
|
+
"gradient]___[value:amphiaraus-light]___[recipe:avatar",
|
|
120
|
+
"gradient]___[value:styx-light]___[recipe:avatar",
|
|
121
|
+
"gradient]___[value:styx-dark]___[recipe:avatar",
|
|
122
|
+
"gradient]___[value:thanatos-light]___[recipe:avatar",
|
|
123
|
+
"gradient]___[value:asphodel-dark]___[recipe:avatar",
|
|
124
|
+
"size]___[value:xs]___[recipe:avatar",
|
|
125
|
+
"size]___[value:lg]___[recipe:avatar",
|
|
126
|
+
"size]___[value:xl]___[recipe:avatar",
|
|
127
|
+
"size]___[value:2xl]___[recipe:avatar",
|
|
128
|
+
"size]___[value:3xl]___[recipe:avatar",
|
|
129
|
+
"size]___[value:4xl]___[recipe:avatar",
|
|
130
|
+
"shape]___[value:square]___[recipe:avatar"
|
|
131
|
+
],
|
|
132
|
+
"button": [
|
|
133
|
+
"palette]___[value:action]___[recipe:button",
|
|
134
|
+
"usage]___[value:filled]___[recipe:button",
|
|
135
|
+
"shape]___[value:sharp]___[recipe:button",
|
|
136
|
+
"size]___[value:md]___[recipe:button",
|
|
137
|
+
"usage]___[value:outlined]___[recipe:button",
|
|
138
|
+
"usage]___[value:ghost]___[recipe:button",
|
|
139
|
+
"shape]___[value:rounded]___[recipe:button",
|
|
140
|
+
"size]___[value:sm]___[recipe:button",
|
|
141
|
+
"usage]___[value:outlined-subtle]___[recipe:button",
|
|
142
|
+
"shape]___[value:default]___[recipe:button",
|
|
143
|
+
"palette]___[value:secondaryAction]___[recipe:button",
|
|
144
|
+
"palette]___[value:info]___[recipe:button",
|
|
145
|
+
"palette]___[value:success]___[recipe:button",
|
|
146
|
+
"palette]___[value:warning]___[recipe:button",
|
|
147
|
+
"palette]___[value:danger]___[recipe:button"
|
|
148
|
+
],
|
|
149
|
+
"field": [
|
|
150
|
+
"size]___[value:lg]___[recipe:field",
|
|
151
|
+
"size]___[value:sm]___[recipe:field",
|
|
152
|
+
"size]___[value:md]___[recipe:field"
|
|
153
|
+
],
|
|
154
|
+
"iconButton": [
|
|
155
|
+
"palette]___[value:action]___[recipe:iconButton",
|
|
156
|
+
"usage]___[value:ghost]___[recipe:iconButton",
|
|
157
|
+
"shape]___[value:square]___[recipe:iconButton",
|
|
158
|
+
"size]___[value:sm]___[recipe:iconButton",
|
|
159
|
+
"shape]___[value:circle]___[recipe:iconButton",
|
|
160
|
+
"size]___[value:lg]___[recipe:iconButton",
|
|
161
|
+
"usage]___[value:outlined-subtle]___[recipe:iconButton",
|
|
162
|
+
"usage]___[value:filled]___[recipe:iconButton",
|
|
163
|
+
"palette]___[value:secondaryAction]___[recipe:iconButton",
|
|
164
|
+
"palette]___[value:info]___[recipe:iconButton",
|
|
165
|
+
"palette]___[value:success]___[recipe:iconButton",
|
|
166
|
+
"palette]___[value:warning]___[recipe:iconButton",
|
|
167
|
+
"palette]___[value:danger]___[recipe:iconButton",
|
|
168
|
+
"usage]___[value:outlined]___[recipe:iconButton"
|
|
169
|
+
],
|
|
170
|
+
"input": [
|
|
171
|
+
"size]___[value:lg]___[recipe:input",
|
|
172
|
+
"size]___[value:sm]___[recipe:input",
|
|
173
|
+
"size]___[value:md]___[recipe:input"
|
|
174
|
+
],
|
|
175
|
+
"tag": [
|
|
176
|
+
"palette]___[value:page]___[recipe:tag",
|
|
177
|
+
"shape]___[value:pill]___[recipe:tag",
|
|
178
|
+
"usage]___[value:filled]___[recipe:tag",
|
|
179
|
+
"palette]___[value:secondaryAction]___[recipe:tag",
|
|
180
|
+
"palette]___[value:info]___[recipe:tag",
|
|
181
|
+
"palette]___[value:success]___[recipe:tag",
|
|
182
|
+
"palette]___[value:warning]___[recipe:tag",
|
|
183
|
+
"palette]___[value:danger]___[recipe:tag",
|
|
184
|
+
"gradient]___[value:charon-light]___[recipe:tag",
|
|
185
|
+
"gradient]___[value:charon-dark]___[recipe:tag",
|
|
186
|
+
"gradient]___[value:nyx-light]___[recipe:tag",
|
|
187
|
+
"gradient]___[value:nyx-dark]___[recipe:tag",
|
|
188
|
+
"gradient]___[value:amphiaraus-light]___[recipe:tag",
|
|
189
|
+
"gradient]___[value:amphiaraus-dark]___[recipe:tag",
|
|
190
|
+
"gradient]___[value:styx-light]___[recipe:tag",
|
|
191
|
+
"gradient]___[value:styx-dark]___[recipe:tag",
|
|
192
|
+
"gradient]___[value:thanatos-light]___[recipe:tag",
|
|
193
|
+
"gradient]___[value:thanatos-dark]___[recipe:tag",
|
|
194
|
+
"gradient]___[value:hades-light]___[recipe:tag",
|
|
195
|
+
"gradient]___[value:hades-dark]___[recipe:tag",
|
|
196
|
+
"gradient]___[value:asphodel-light]___[recipe:tag",
|
|
197
|
+
"gradient]___[value:asphodel-dark]___[recipe:tag",
|
|
198
|
+
"usage]___[value:outlined]___[recipe:tag",
|
|
199
|
+
"shape]___[value:square]___[recipe:tag"
|
|
200
|
+
],
|
|
201
|
+
"accordion": [
|
|
202
|
+
"size]___[value:lg]___[recipe:accordion",
|
|
203
|
+
"size]___[value:sm]___[recipe:accordion"
|
|
204
|
+
],
|
|
205
|
+
"circularProgress": [
|
|
206
|
+
"usage]___[value:filled]___[recipe:circularProgress",
|
|
207
|
+
"size]___[value:xs]___[recipe:circularProgress",
|
|
208
|
+
"usage]___[value:transparent]___[recipe:circularProgress",
|
|
209
|
+
"size]___[value:sm]___[recipe:circularProgress",
|
|
210
|
+
"size]___[value:md]___[recipe:circularProgress",
|
|
211
|
+
"size]___[value:lg]___[recipe:circularProgress"
|
|
212
|
+
],
|
|
213
|
+
"tooltip": [],
|
|
214
|
+
"combobox": [
|
|
215
|
+
"size]___[value:md]___[recipe:combobox",
|
|
216
|
+
"size]___[value:sm]___[recipe:combobox",
|
|
217
|
+
"size]___[value:lg]___[recipe:combobox"
|
|
218
|
+
],
|
|
219
|
+
"datePicker": [],
|
|
220
|
+
"fileStatus": [
|
|
221
|
+
"status]___[value:todo]___[recipe:fileStatus",
|
|
222
|
+
"status]___[value:processing]___[recipe:fileStatus",
|
|
223
|
+
"status]___[value:done]___[recipe:fileStatus",
|
|
224
|
+
"status]___[value:error]___[recipe:fileStatus"
|
|
225
|
+
],
|
|
226
|
+
"progressBar": [
|
|
227
|
+
"size]___[value:sm]___[recipe:progressBar",
|
|
228
|
+
"usage]___[value:rounded]___[recipe:progressBar",
|
|
229
|
+
"size]___[value:md]___[recipe:progressBar",
|
|
230
|
+
"usage]___[value:block]___[recipe:progressBar"
|
|
231
|
+
],
|
|
232
|
+
"toast": [],
|
|
233
|
+
"group": [
|
|
234
|
+
"orientation]___[value:horizontal]___[recipe:group",
|
|
235
|
+
"layout]___[value:default]___[recipe:group",
|
|
236
|
+
"layout]___[value:attached]___[recipe:group",
|
|
237
|
+
"orientation]___[value:vertical]___[recipe:group",
|
|
238
|
+
"layout]___[value:grow]___[recipe:group"
|
|
239
|
+
],
|
|
240
|
+
"radioGroup": [
|
|
241
|
+
"orientation]___[value:horizontal]___[recipe:radioGroup",
|
|
242
|
+
"size]___[value:sm]___[recipe:radioGroup",
|
|
243
|
+
"orientation]___[value:vertical]___[recipe:radioGroup",
|
|
244
|
+
"size]___[value:md]___[recipe:radioGroup"
|
|
245
|
+
],
|
|
246
|
+
"buttonGroup": [
|
|
247
|
+
"layout]___[value:attached]___[recipe:buttonGroup",
|
|
248
|
+
"shape]___[value:sharp]___[recipe:buttonGroup",
|
|
249
|
+
"layout]___[value:default]___[recipe:buttonGroup",
|
|
250
|
+
"shape]___[value:default]___[recipe:buttonGroup",
|
|
251
|
+
"shape]___[value:rounded]___[recipe:buttonGroup"
|
|
252
|
+
],
|
|
253
|
+
"menu": [],
|
|
254
|
+
"table": [
|
|
255
|
+
"decoration]___[value:default]___[recipe:table",
|
|
256
|
+
"size]___[value:md]___[recipe:table",
|
|
257
|
+
"size]___[value:sm]___[recipe:table",
|
|
258
|
+
"size]___[value:lg]___[recipe:table",
|
|
259
|
+
"decoration]___[value:zebra]___[recipe:table"
|
|
260
|
+
],
|
|
261
|
+
"fieldMessage": [],
|
|
262
|
+
"label": [
|
|
263
|
+
"usage]___[value:visible]___[recipe:label",
|
|
264
|
+
"size]___[value:sm]___[recipe:label",
|
|
265
|
+
"usage]___[value:hidden]___[recipe:label",
|
|
266
|
+
"size]___[value:md]___[recipe:label"
|
|
267
|
+
],
|
|
268
|
+
"thead": [],
|
|
269
|
+
"th": [
|
|
270
|
+
"size]___[value:md]___[recipe:th",
|
|
271
|
+
"size]___[value:lg]___[recipe:th"
|
|
272
|
+
],
|
|
273
|
+
"tbody": [
|
|
274
|
+
"decoration]___[value:default]___[recipe:tbody",
|
|
275
|
+
"decoration]___[value:zebra]___[recipe:tbody"
|
|
276
|
+
],
|
|
277
|
+
"td": [
|
|
278
|
+
"size]___[value:md]___[recipe:td",
|
|
279
|
+
"size]___[value:sm]___[recipe:td",
|
|
280
|
+
"size]___[value:lg]___[recipe:td"
|
|
281
|
+
],
|
|
282
|
+
"admonition": [
|
|
283
|
+
"palette]___[value:page]___[recipe:admonition",
|
|
284
|
+
"usage]___[value:filled]___[recipe:admonition",
|
|
285
|
+
"palette]___[value:info]___[recipe:admonition",
|
|
286
|
+
"palette]___[value:success]___[recipe:admonition",
|
|
287
|
+
"palette]___[value:warning]___[recipe:admonition",
|
|
288
|
+
"palette]___[value:danger]___[recipe:admonition",
|
|
289
|
+
"usage]___[value:outlined]___[recipe:admonition"
|
|
290
|
+
],
|
|
291
|
+
"carousel": [],
|
|
292
|
+
"checkbox": [
|
|
293
|
+
"size]___[value:sm]___[recipe:checkbox",
|
|
294
|
+
"size]___[value:md]___[recipe:checkbox"
|
|
295
|
+
],
|
|
296
|
+
"collapsible": [
|
|
297
|
+
"effect]___[value:expandIn]___[recipe:collapsible",
|
|
298
|
+
"effect]___[value:none]___[recipe:collapsible",
|
|
299
|
+
"effect]___[value:fade]___[recipe:collapsible"
|
|
300
|
+
],
|
|
301
|
+
"fieldset": [
|
|
302
|
+
"usage]___[value:fieldGroup]___[recipe:fieldset",
|
|
303
|
+
"usage]___[value:formSection]___[recipe:fieldset"
|
|
304
|
+
],
|
|
305
|
+
"fileUploader": [],
|
|
306
|
+
"modal": [],
|
|
307
|
+
"notification": [
|
|
308
|
+
"palette]___[value:info]___[recipe:notification",
|
|
309
|
+
"palette]___[value:success]___[recipe:notification",
|
|
310
|
+
"palette]___[value:warning]___[recipe:notification",
|
|
311
|
+
"palette]___[value:danger]___[recipe:notification"
|
|
312
|
+
],
|
|
313
|
+
"numberInput": [
|
|
314
|
+
"size]___[value:md]___[recipe:numberInput",
|
|
315
|
+
"size]___[value:sm]___[recipe:numberInput",
|
|
316
|
+
"size]___[value:lg]___[recipe:numberInput"
|
|
317
|
+
],
|
|
318
|
+
"pinInput": [
|
|
319
|
+
"size]___[value:lg]___[recipe:pinInput",
|
|
320
|
+
"size]___[value:md]___[recipe:pinInput"
|
|
321
|
+
],
|
|
322
|
+
"ratingGroup": [
|
|
323
|
+
"palette]___[value:action]___[recipe:ratingGroup",
|
|
324
|
+
"orientation]___[value:vertical]___[recipe:ratingGroup",
|
|
325
|
+
"size]___[value:sm]___[recipe:ratingGroup",
|
|
326
|
+
"palette]___[value:warning]___[recipe:ratingGroup",
|
|
327
|
+
"orientation]___[value:horizontal]___[recipe:ratingGroup",
|
|
328
|
+
"size]___[value:md]___[recipe:ratingGroup"
|
|
329
|
+
],
|
|
330
|
+
"select": [
|
|
331
|
+
"size]___[value:md]___[recipe:select",
|
|
332
|
+
"size]___[value:sm]___[recipe:select",
|
|
333
|
+
"size]___[value:lg]___[recipe:select"
|
|
334
|
+
],
|
|
335
|
+
"switchRecipe": [
|
|
336
|
+
"size]___[value:sm]___[recipe:switchRecipe",
|
|
337
|
+
"size]___[value:lg]___[recipe:switchRecipe"
|
|
338
|
+
],
|
|
339
|
+
"tabs": [
|
|
340
|
+
"palette]___[value:action]___[recipe:tabs",
|
|
341
|
+
"palette]___[value:secondaryAction]___[recipe:tabs"
|
|
342
|
+
],
|
|
343
|
+
"toggle": [
|
|
344
|
+
"size]___[value:sm]___[recipe:toggle",
|
|
345
|
+
"size]___[value:lg]___[recipe:toggle"
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.7",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"
|
|
24
|
+
"package.json"
|
|
25
25
|
],
|
|
26
26
|
"type": "module",
|
|
27
27
|
"sideEffects": false,
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@internationalized/date": "^3.11.0",
|
|
39
|
+
"@pandacss/dev": "^1.9.0",
|
|
39
40
|
"@types/react": "^19.2.14",
|
|
40
41
|
"@types/react-dom": "^19.2.3",
|
|
41
42
|
"@vitejs/plugin-react": "^5.1.2",
|
|
@@ -44,16 +45,18 @@
|
|
|
44
45
|
"react-dom": "^19.2.4",
|
|
45
46
|
"vite": "^8.0.0",
|
|
46
47
|
"vite-plugin-dts": "^4.5.4",
|
|
47
|
-
"styled-system": "0.0.0"
|
|
48
|
+
"styled-system": "0.0.0",
|
|
49
|
+
"@cerberus/panda-preset": "1.0.0-rc.7"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"@pandacss/dev": "^1.
|
|
52
|
+
"@pandacss/dev": "^1.9.0",
|
|
51
53
|
"react": "*",
|
|
52
54
|
"react-dom": "*"
|
|
53
55
|
},
|
|
54
56
|
"browserslist": "> 0.25%, not dead",
|
|
55
57
|
"scripts": {
|
|
56
|
-
"
|
|
58
|
+
"generate:info": "pnpm panda ship --outfile dist/panda.buildinfo.json",
|
|
59
|
+
"build": "vite build && pnpm generate:info",
|
|
57
60
|
"clean": "rm -rf ./dist",
|
|
58
61
|
"lint:ts": "tsc --project tsconfig.lint.json --noEmit"
|
|
59
62
|
},
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This module contains an animating icon to use for the FileStatus component.
|
|
3
|
-
* @module
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export interface AnimatingUploadIconProps {
|
|
7
|
-
size?: 16 | 20 | 24 | 32
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function AnimatingUploadIcon(props: AnimatingUploadIconProps) {
|
|
11
|
-
return (
|
|
12
|
-
<svg
|
|
13
|
-
aria-hidden="true"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
width={props.size ?? '1em'}
|
|
16
|
-
height={props.size ?? '1em'}
|
|
17
|
-
viewBox="0 0 24 24"
|
|
18
|
-
>
|
|
19
|
-
<g
|
|
20
|
-
fill="none"
|
|
21
|
-
stroke="currentColor"
|
|
22
|
-
strokeLinecap="square"
|
|
23
|
-
strokeLinejoin="round"
|
|
24
|
-
strokeWidth={1.5}
|
|
25
|
-
>
|
|
26
|
-
<path
|
|
27
|
-
data-name="animating-trail"
|
|
28
|
-
strokeDasharray="2 4"
|
|
29
|
-
strokeDashoffset={6}
|
|
30
|
-
d="M12 21c-4.97 0 -9 -4.03 -9 -9c0 -4.97 4.03 -9 9 -9"
|
|
31
|
-
>
|
|
32
|
-
<animate
|
|
33
|
-
attributeName="stroke-dashoffset"
|
|
34
|
-
dur="0.45s"
|
|
35
|
-
repeatCount="indefinite"
|
|
36
|
-
values="6;0"
|
|
37
|
-
></animate>
|
|
38
|
-
</path>
|
|
39
|
-
|
|
40
|
-
<path
|
|
41
|
-
data-name="half-circle"
|
|
42
|
-
strokeDasharray={32}
|
|
43
|
-
strokeDashoffset={32}
|
|
44
|
-
d="M12 3c4.97 0 9 4.03 9 9c0 4.97 -4.03 9 -9 9"
|
|
45
|
-
>
|
|
46
|
-
<animate
|
|
47
|
-
fill="freeze"
|
|
48
|
-
attributeName="stroke-dashoffset"
|
|
49
|
-
begin="0.075s"
|
|
50
|
-
dur="0.3s"
|
|
51
|
-
values="32;0"
|
|
52
|
-
></animate>
|
|
53
|
-
</path>
|
|
54
|
-
|
|
55
|
-
<svg
|
|
56
|
-
aria-hidden="true"
|
|
57
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
58
|
-
width="1.1em"
|
|
59
|
-
height="1.1em"
|
|
60
|
-
x="27%"
|
|
61
|
-
y="27%"
|
|
62
|
-
viewBox="0 0 24 24"
|
|
63
|
-
>
|
|
64
|
-
<polygon
|
|
65
|
-
fill="currentColor"
|
|
66
|
-
stroke="currentColor"
|
|
67
|
-
strokeWidth={0.8}
|
|
68
|
-
opacity="1"
|
|
69
|
-
points="3.7,6.7 7.5,2.9 7.5,15 8.5,15 8.5,2.9 12.3,6.7 13,6 8,1 3,6 "
|
|
70
|
-
>
|
|
71
|
-
<animate
|
|
72
|
-
fill="freeze"
|
|
73
|
-
attributeName="opacity"
|
|
74
|
-
values="1;0;1"
|
|
75
|
-
dur="2s"
|
|
76
|
-
repeatCount="indefinite"
|
|
77
|
-
></animate>
|
|
78
|
-
</polygon>
|
|
79
|
-
</svg>
|
|
80
|
-
</g>
|
|
81
|
-
</svg>
|
|
82
|
-
)
|
|
83
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AccordionItemProps,
|
|
3
|
-
AccordionRootProps,
|
|
4
|
-
} from '@ark-ui/react/accordion'
|
|
5
|
-
import { type AccordionVariantProps } from 'styled-system/recipes'
|
|
6
|
-
import { splitProps } from '../../utils/index'
|
|
7
|
-
import { Show } from '../show/index'
|
|
8
|
-
import { AccordionParts } from './parts'
|
|
9
|
-
import { AccordionChevronItemIndicator } from './item-indicator'
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* This module contains an abstraction of the AccordionItem components.
|
|
13
|
-
* @module
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
export function Accordion(props: AccordionRootProps & AccordionVariantProps) {
|
|
17
|
-
return <AccordionParts.Root {...props} />
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface AccordionItemGroupProps
|
|
21
|
-
extends AccordionItemProps,
|
|
22
|
-
AccordionVariantProps {
|
|
23
|
-
/**
|
|
24
|
-
* The heading of the accordion item to open and close the content.
|
|
25
|
-
*/
|
|
26
|
-
heading: string
|
|
27
|
-
/**
|
|
28
|
-
* The position of the arrow indicator.
|
|
29
|
-
*/
|
|
30
|
-
indicatorPosition?: 'start' | 'end'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The AccordionItemGroup component is an abstraction of the Accordion primitive
|
|
35
|
-
* components which renders an accordion item with a heading and an indicator.
|
|
36
|
-
*
|
|
37
|
-
* It is a wrapper around the `AccordionParts.Item`, `AccordionParts.
|
|
38
|
-
* ItemTrigger`, `AccordionParts.ItemIndicator`, and `AccordionParts.ItemContent` components.
|
|
39
|
-
*
|
|
40
|
-
* @description [Cerberus docs](https://cerberus.digitalu.design/react/accordion)
|
|
41
|
-
* @description [Ark docs](https://ark-ui.com/react/docs/components/accordion)
|
|
42
|
-
*/
|
|
43
|
-
export function AccordionItemGroup(props: AccordionItemGroupProps) {
|
|
44
|
-
const [groupProps, itemProps] = splitProps(props, [
|
|
45
|
-
'heading',
|
|
46
|
-
'children',
|
|
47
|
-
'indicatorPosition',
|
|
48
|
-
])
|
|
49
|
-
const indicatorPosition = groupProps.indicatorPosition ?? 'end'
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<AccordionParts.Item {...itemProps}>
|
|
53
|
-
<AccordionParts.ItemTrigger data-indicator-position={indicatorPosition}>
|
|
54
|
-
<Show when={indicatorPosition === 'start'}>
|
|
55
|
-
<AccordionChevronItemIndicator />
|
|
56
|
-
</Show>
|
|
57
|
-
|
|
58
|
-
{groupProps.heading}
|
|
59
|
-
|
|
60
|
-
<Show when={indicatorPosition === 'end'}>
|
|
61
|
-
<AccordionChevronItemIndicator />
|
|
62
|
-
</Show>
|
|
63
|
-
</AccordionParts.ItemTrigger>
|
|
64
|
-
|
|
65
|
-
<AccordionParts.ItemContent>
|
|
66
|
-
{groupProps.children}
|
|
67
|
-
</AccordionParts.ItemContent>
|
|
68
|
-
</AccordionParts.Item>
|
|
69
|
-
)
|
|
70
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import { type AccordionItemIndicatorProps } from '@ark-ui/react/accordion'
|
|
4
|
-
import { type AccordionVariantProps } from 'styled-system/recipes'
|
|
5
|
-
import { useCerberusContext } from '../../context/cerberus'
|
|
6
|
-
import { AccordionParts } from './parts'
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* This module contains the internal AccordionItemIndicator component.
|
|
10
|
-
* @module 'accordion/item-indicator'
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export function AccordionChevronItemIndicator(
|
|
14
|
-
props: AccordionItemIndicatorProps & AccordionVariantProps,
|
|
15
|
-
) {
|
|
16
|
-
const { size, ...indicatorProps } = props
|
|
17
|
-
const iconSize = size === 'sm' ? 16 : '24'
|
|
18
|
-
|
|
19
|
-
const { icons } = useCerberusContext()
|
|
20
|
-
const { accordionIndicator: ChevronDown } = icons
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<AccordionParts.ItemIndicator {...indicatorProps}>
|
|
24
|
-
<ChevronDown size={iconSize} />
|
|
25
|
-
</AccordionParts.ItemIndicator>
|
|
26
|
-
)
|
|
27
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { ElementType } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
AccordionItem,
|
|
4
|
-
AccordionItemContent,
|
|
5
|
-
AccordionItemIndicator,
|
|
6
|
-
AccordionItemTrigger,
|
|
7
|
-
AccordionRoot,
|
|
8
|
-
} from './primitives'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This module contains the parts of the Accordion component.
|
|
12
|
-
* @module 'accordion/parts'
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
interface AccordionPartsValue {
|
|
16
|
-
/**
|
|
17
|
-
* The context provider of the accordion.
|
|
18
|
-
*/
|
|
19
|
-
Root: ElementType
|
|
20
|
-
/**
|
|
21
|
-
* The item of the accordion.
|
|
22
|
-
*/
|
|
23
|
-
Item: ElementType
|
|
24
|
-
/**
|
|
25
|
-
* The trigger of the accordion item.
|
|
26
|
-
*/
|
|
27
|
-
ItemTrigger: ElementType
|
|
28
|
-
/**
|
|
29
|
-
* The content of the accordion item.
|
|
30
|
-
*/
|
|
31
|
-
ItemContent: ElementType
|
|
32
|
-
/**
|
|
33
|
-
* The indicator of the accordion item.
|
|
34
|
-
*/
|
|
35
|
-
ItemIndicator: ElementType
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* An Object containing the parts of the Accordion component. For users that
|
|
40
|
-
* prefer Object component syntax.
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
*
|
|
44
|
-
* When using object component syntax, you import the AccordionParts object and
|
|
45
|
-
* the entire family of components vs. only what you use.
|
|
46
|
-
*/
|
|
47
|
-
export const AccordionParts: AccordionPartsValue = {
|
|
48
|
-
Root: AccordionRoot,
|
|
49
|
-
Item: AccordionItem,
|
|
50
|
-
ItemTrigger: AccordionItemTrigger,
|
|
51
|
-
ItemContent: AccordionItemContent,
|
|
52
|
-
ItemIndicator: AccordionItemIndicator,
|
|
53
|
-
}
|