@pathscale/ui 1.2.10 → 1.3.0

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.
Files changed (126) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +132 -59
  3. package/dist/components/accordion/Accordion.css +158 -158
  4. package/dist/components/alert/Alert.css +116 -116
  5. package/dist/components/avatar/Avatar.css +124 -124
  6. package/dist/components/badge/Badge.css +164 -164
  7. package/dist/components/breadcrumbs/Breadcrumbs.css +63 -63
  8. package/dist/components/button/Button.css +194 -194
  9. package/dist/components/button-group/ButtonGroup.css +117 -117
  10. package/dist/components/calendar/Calendar.css +258 -258
  11. package/dist/components/card/Card.css +110 -110
  12. package/dist/components/chatbubble/ChatBubble.css +164 -164
  13. package/dist/components/checkbox/Checkbox.css +183 -183
  14. package/dist/components/checkbox-group/CheckboxGroup.css +10 -10
  15. package/dist/components/chip/Chip.css +197 -197
  16. package/dist/components/close-button/CloseButton.css +81 -81
  17. package/dist/components/color-area/ColorArea.css +54 -54
  18. package/dist/components/color-field/ColorField.css +88 -88
  19. package/dist/components/color-picker/ColorPicker.css +28 -28
  20. package/dist/components/color-slider/ColorSlider.css +57 -57
  21. package/dist/components/color-swatch/ColorSwatch.css +84 -84
  22. package/dist/components/color-swatch-picker/ColorSwatchPicker.css +12 -12
  23. package/dist/components/color-wheel-flower/ColorWheelFlower.css +147 -147
  24. package/dist/components/combo-box/ComboBox.css +344 -344
  25. package/dist/components/date-field/DateField.css +215 -215
  26. package/dist/components/date-picker/DatePicker.css +143 -143
  27. package/dist/components/date-range-picker/DateRangePicker.css +149 -149
  28. package/dist/components/description/Description.css +10 -10
  29. package/dist/components/disclosure/Disclosure.css +84 -84
  30. package/dist/components/disclosure-group/DisclosureGroup.css +9 -9
  31. package/dist/components/drawer/Drawer.css +463 -463
  32. package/dist/components/dropdown/Dropdown.css +211 -211
  33. package/dist/components/empty-state/EmptyState.css +39 -39
  34. package/dist/components/error-message/ErrorMessage.css +20 -20
  35. package/dist/components/field-error/FieldError.css +27 -27
  36. package/dist/components/fieldset/Fieldset.css +30 -30
  37. package/dist/components/flex/Flex.css +5 -5
  38. package/dist/components/floating-dock/FloatingDock.css +208 -208
  39. package/dist/components/footer/footer.css +51 -51
  40. package/dist/components/form/Form.css +5 -5
  41. package/dist/components/glass-panel/GlassPanel.css +359 -359
  42. package/dist/components/glow-card/GlowCard.css +100 -100
  43. package/dist/components/grid/Grid.css +5 -5
  44. package/dist/components/header/Header.css +13 -13
  45. package/dist/components/icon/Icon.css +10 -10
  46. package/dist/components/immersive-landing/ImmersiveLanding.css +565 -565
  47. package/dist/components/input/Input.css +155 -155
  48. package/dist/components/input-group/InputGroup.css +172 -172
  49. package/dist/components/input-otp/InputOTP.css +170 -170
  50. package/dist/components/kbd/Kbd.css +60 -60
  51. package/dist/components/label/Label.css +30 -30
  52. package/dist/components/language-switcher/LanguageSwitcher.css +56 -56
  53. package/dist/components/language-switcher/createI18n.d.ts +2 -1
  54. package/dist/components/link/Link.css +131 -131
  55. package/dist/components/list-box/ListBox.css +148 -148
  56. package/dist/components/live-chat/LiveChat.css +324 -324
  57. package/dist/components/menu/Menu.css +199 -199
  58. package/dist/components/metal-border/MetalBorder.classes.d.ts +26 -0
  59. package/dist/components/metal-border/MetalBorder.classes.js +27 -0
  60. package/dist/components/metal-border/MetalBorder.css +40 -0
  61. package/dist/components/metal-border/MetalBorder.d.ts +20 -0
  62. package/dist/components/metal-border/MetalBorder.js +322 -0
  63. package/dist/components/metal-border/engine/color.d.ts +4 -0
  64. package/dist/components/metal-border/engine/color.js +69 -0
  65. package/dist/components/metal-border/engine/glow/geometry.d.ts +35 -0
  66. package/dist/components/metal-border/engine/glow/geometry.js +176 -0
  67. package/dist/components/metal-border/engine/glow/glow.d.ts +38 -0
  68. package/dist/components/metal-border/engine/glow/glow.js +246 -0
  69. package/dist/components/metal-border/engine/index.d.ts +4 -0
  70. package/dist/components/metal-border/engine/index.js +2 -0
  71. package/dist/components/metal-border/engine/perfConfig.d.ts +9 -0
  72. package/dist/components/metal-border/engine/perfConfig.js +10 -0
  73. package/dist/components/metal-border/engine/presets.d.ts +57 -0
  74. package/dist/components/metal-border/engine/presets.js +214 -0
  75. package/dist/components/metal-border/engine/renderer/core.d.ts +69 -0
  76. package/dist/components/metal-border/engine/renderer/core.js +156 -0
  77. package/dist/components/metal-border/engine/renderer/loop.d.ts +30 -0
  78. package/dist/components/metal-border/engine/renderer/loop.js +248 -0
  79. package/dist/components/metal-border/engine/renderer/sampling.d.ts +14 -0
  80. package/dist/components/metal-border/engine/renderer/sampling.js +145 -0
  81. package/dist/components/metal-border/engine/shaders.d.ts +36 -0
  82. package/dist/components/metal-border/engine/shaders.js +215 -0
  83. package/dist/components/metal-border/engine/tween.d.ts +17 -0
  84. package/dist/components/metal-border/engine/tween.js +28 -0
  85. package/dist/components/metal-border/index.d.ts +2 -0
  86. package/dist/components/metal-border/index.js +1 -0
  87. package/dist/components/meter/Meter.css +89 -89
  88. package/dist/components/modal/Modal.css +320 -320
  89. package/dist/components/navbar/Navbar.css +110 -110
  90. package/dist/components/noise-background/NoiseBackground.css +66 -66
  91. package/dist/components/number-field/NumberField.css +198 -198
  92. package/dist/components/pagination/Pagination.css +121 -121
  93. package/dist/components/popover/Popover.css +117 -117
  94. package/dist/components/progress-bar/ProgressBar.css +104 -104
  95. package/dist/components/progress-circle/ProgressCircle.css +82 -82
  96. package/dist/components/radio/Radio.css +129 -129
  97. package/dist/components/radio-group/RadioGroup.css +58 -58
  98. package/dist/components/range-calendar/RangeCalendar.css +51 -51
  99. package/dist/components/scroll-shadow/ScrollShadow.css +93 -93
  100. package/dist/components/search-field/SearchField.css +183 -183
  101. package/dist/components/select/Select.css +284 -284
  102. package/dist/components/separator/Separator.css +35 -35
  103. package/dist/components/skeleton/Skeleton.css +95 -95
  104. package/dist/components/slider/Slider.css +122 -122
  105. package/dist/components/spinner/Spinner.css +131 -131
  106. package/dist/components/surface/Surface.css +37 -37
  107. package/dist/components/table/Table.css +426 -426
  108. package/dist/components/tabs/Tabs.css +203 -203
  109. package/dist/components/tag/Tag.css +121 -121
  110. package/dist/components/tag-group/TagGroup.css +22 -22
  111. package/dist/components/text/Text.css +66 -66
  112. package/dist/components/text-area/TextArea.css +95 -95
  113. package/dist/components/text-field/TextField.css +33 -33
  114. package/dist/components/time-field/TimeField.css +215 -215
  115. package/dist/components/toast/Toast.css +344 -344
  116. package/dist/components/toggle/Toggle.css +237 -237
  117. package/dist/components/toolbar/Toolbar.css +55 -55
  118. package/dist/components/tooltip/Tooltip.css +153 -153
  119. package/dist/index.css +74 -74
  120. package/dist/index.d.ts +2 -0
  121. package/dist/index.js +1 -0
  122. package/dist/purge-manifest.json +15836 -15583
  123. package/dist/styles/base/index.css +43 -43
  124. package/dist/styles/themes/dark.css +141 -141
  125. package/dist/styles/themes/light.css +143 -143
  126. package/package.json +17 -8
@@ -1,208 +1,208 @@
1
- @layer components {
2
- /* -------------------------------------------------------------------------------------------------
3
- * Dock container
4
- * -----------------------------------------------------------------------------------------------*/
5
- .floating-dock {
6
- position: relative;
7
- display: inline-flex;
8
- align-items: flex-end;
9
- overflow: visible;
10
- }
11
-
12
- .floating-dock__bar {
13
- position: relative;
14
- display: flex;
15
- align-items: flex-end;
16
- overflow: visible;
17
- }
18
-
19
- .floating-dock__bar--horizontal {
20
- flex-direction: row;
21
- }
22
-
23
- .floating-dock__bar--vertical {
24
- flex-direction: column;
25
- align-items: center;
26
- }
27
-
28
- /* -------------------------------------------------------------------------------------------------
29
- * Background panel — original soft-edge shape with a subtle glass treatment.
30
- * Per customer feedback: keep the prior shape/borders, only add a glass feel.
31
- * -----------------------------------------------------------------------------------------------*/
32
- .floating-dock__bg {
33
- position: absolute;
34
- inset: 0;
35
- z-index: -1;
36
- border-radius: 1rem;
37
- background-color: color-mix(in srgb, var(--color-base-100) 55%, transparent);
38
- backdrop-filter: blur(12px) saturate(160%);
39
- -webkit-backdrop-filter: blur(12px) saturate(160%);
40
- box-shadow:
41
- inset 0 1px 0 0 var(--color-base-300),
42
- 0 1px 0 0 var(--color-base-100);
43
- pointer-events: none;
44
- }
45
-
46
- /* -------------------------------------------------------------------------------------------------
47
- * Item wrapper — original look: rounded pill, semi-opaque, hover bumps opacity.
48
- * -----------------------------------------------------------------------------------------------*/
49
- .floating-dock__item {
50
- position: relative;
51
- display: flex;
52
- align-items: center;
53
- justify-content: center;
54
- border-radius: 9999px;
55
- background-color: transparent;
56
- opacity: 0.8;
57
- transform-origin: bottom center;
58
- will-change: transform;
59
- transition: opacity 150ms ease;
60
- }
61
-
62
- .floating-dock__item:hover {
63
- opacity: 1;
64
- }
65
-
66
- .floating-dock__item:active {
67
- opacity: 0.6;
68
- }
69
-
70
- .floating-dock__button-reset {
71
- appearance: none;
72
- border: 0;
73
- background: transparent;
74
- padding: 0;
75
- cursor: pointer;
76
- }
77
-
78
- /* -------------------------------------------------------------------------------------------------
79
- * Icon container
80
- * -----------------------------------------------------------------------------------------------*/
81
- .floating-dock__icon {
82
- display: flex;
83
- align-items: center;
84
- justify-content: center;
85
- flex-shrink: 0;
86
- will-change: transform;
87
- }
88
-
89
- /* -------------------------------------------------------------------------------------------------
90
- * Tooltip
91
- * -----------------------------------------------------------------------------------------------*/
92
- .floating-dock__tooltip {
93
- position: fixed;
94
- z-index: 9999;
95
- width: fit-content;
96
- pointer-events: none;
97
- white-space: pre;
98
- border-radius: var(--radius-field, 0.375rem);
99
- border: 1px solid var(--color-base-300);
100
- background-color: color-mix(in srgb, var(--color-base-100) 75%, transparent);
101
- backdrop-filter: blur(8px) saturate(160%);
102
- -webkit-backdrop-filter: blur(8px) saturate(160%);
103
- color: var(--color-base-content);
104
- padding: 0.125rem 0.5rem;
105
- font-size: 0.75rem;
106
- opacity: 0;
107
- animation: floating-dock-fade-in 150ms ease forwards;
108
- }
109
-
110
- @keyframes floating-dock-fade-in {
111
- to {
112
- opacity: 1;
113
- }
114
- }
115
-
116
- /* -------------------------------------------------------------------------------------------------
117
- * Mobile
118
- * -----------------------------------------------------------------------------------------------*/
119
- .floating-dock__mobile {
120
- position: relative;
121
- display: block;
122
- }
123
-
124
- .floating-dock__mobile-toggle {
125
- display: flex;
126
- align-items: center;
127
- justify-content: center;
128
- border-radius: 9999px;
129
- background-color: var(--color-base-200);
130
- border: none;
131
- padding: 0;
132
- cursor: pointer;
133
- }
134
-
135
- .floating-dock__mobile-popup {
136
- position: absolute;
137
- display: flex;
138
- flex-direction: column;
139
- gap: 0.5rem;
140
- }
141
-
142
- .floating-dock__mobile-popup--top {
143
- inset: auto 0 100% 0;
144
- margin-bottom: 0.5rem;
145
- }
146
-
147
- .floating-dock__mobile-popup--bottom {
148
- inset: 100% 0 auto 0;
149
- margin-top: 0.5rem;
150
- }
151
-
152
- .floating-dock__mobile-popup--left {
153
- right: 100%;
154
- top: 0;
155
- margin-right: 0.5rem;
156
- }
157
-
158
- .floating-dock__mobile-popup--right {
159
- left: 100%;
160
- top: 0;
161
- margin-left: 0.5rem;
162
- }
163
-
164
- .floating-dock__mobile-item {
165
- opacity: 0;
166
- animation: floating-dock-fade-in 200ms ease forwards;
167
- }
168
-
169
- .floating-dock__menu-icon {
170
- width: 1.25rem;
171
- height: 1.25rem;
172
- color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
173
- }
174
-
175
- /* a11y */
176
- @media (prefers-reduced-transparency: reduce) {
177
- .floating-dock__bg,
178
- .floating-dock__tooltip {
179
- backdrop-filter: none;
180
- -webkit-backdrop-filter: none;
181
- background-color: var(--color-base-100);
182
- }
183
- }
184
-
185
- /* -------------------------------------------------------------------------------------------------
186
- * Responsive: hide desktop on small, mobile on large
187
- * -----------------------------------------------------------------------------------------------*/
188
- @media (max-width: 767px) {
189
- .floating-dock__bar {
190
- display: none;
191
- }
192
-
193
- /* mobileMode="dock": show the full bar on mobile instead of burger */
194
- .floating-dock__bar--mobile-dock {
195
- display: flex;
196
- }
197
- }
198
-
199
- @media (min-width: 768px) {
200
- .floating-dock__mobile {
201
- display: none;
202
- }
203
-
204
- .floating-dock__bar--mobile-dock {
205
- display: none;
206
- }
207
- }
208
- }
1
+ @layer components {
2
+ /* -------------------------------------------------------------------------------------------------
3
+ * Dock container
4
+ * -----------------------------------------------------------------------------------------------*/
5
+ .floating-dock {
6
+ position: relative;
7
+ display: inline-flex;
8
+ align-items: flex-end;
9
+ overflow: visible;
10
+ }
11
+
12
+ .floating-dock__bar {
13
+ position: relative;
14
+ display: flex;
15
+ align-items: flex-end;
16
+ overflow: visible;
17
+ }
18
+
19
+ .floating-dock__bar--horizontal {
20
+ flex-direction: row;
21
+ }
22
+
23
+ .floating-dock__bar--vertical {
24
+ flex-direction: column;
25
+ align-items: center;
26
+ }
27
+
28
+ /* -------------------------------------------------------------------------------------------------
29
+ * Background panel — original soft-edge shape with a subtle glass treatment.
30
+ * Per customer feedback: keep the prior shape/borders, only add a glass feel.
31
+ * -----------------------------------------------------------------------------------------------*/
32
+ .floating-dock__bg {
33
+ position: absolute;
34
+ inset: 0;
35
+ z-index: -1;
36
+ border-radius: 1rem;
37
+ background-color: color-mix(in srgb, var(--color-base-100) 55%, transparent);
38
+ backdrop-filter: blur(12px) saturate(160%);
39
+ -webkit-backdrop-filter: blur(12px) saturate(160%);
40
+ box-shadow:
41
+ inset 0 1px 0 0 var(--color-base-300),
42
+ 0 1px 0 0 var(--color-base-100);
43
+ pointer-events: none;
44
+ }
45
+
46
+ /* -------------------------------------------------------------------------------------------------
47
+ * Item wrapper — original look: rounded pill, semi-opaque, hover bumps opacity.
48
+ * -----------------------------------------------------------------------------------------------*/
49
+ .floating-dock__item {
50
+ position: relative;
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ border-radius: 9999px;
55
+ background-color: transparent;
56
+ opacity: 0.8;
57
+ transform-origin: bottom center;
58
+ will-change: transform;
59
+ transition: opacity 150ms ease;
60
+ }
61
+
62
+ .floating-dock__item:hover {
63
+ opacity: 1;
64
+ }
65
+
66
+ .floating-dock__item:active {
67
+ opacity: 0.6;
68
+ }
69
+
70
+ .floating-dock__button-reset {
71
+ appearance: none;
72
+ border: 0;
73
+ background: transparent;
74
+ padding: 0;
75
+ cursor: pointer;
76
+ }
77
+
78
+ /* -------------------------------------------------------------------------------------------------
79
+ * Icon container
80
+ * -----------------------------------------------------------------------------------------------*/
81
+ .floating-dock__icon {
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ flex-shrink: 0;
86
+ will-change: transform;
87
+ }
88
+
89
+ /* -------------------------------------------------------------------------------------------------
90
+ * Tooltip
91
+ * -----------------------------------------------------------------------------------------------*/
92
+ .floating-dock__tooltip {
93
+ position: fixed;
94
+ z-index: 9999;
95
+ width: fit-content;
96
+ pointer-events: none;
97
+ white-space: pre;
98
+ border-radius: var(--radius-field, 0.375rem);
99
+ border: 1px solid var(--color-base-300);
100
+ background-color: color-mix(in srgb, var(--color-base-100) 75%, transparent);
101
+ backdrop-filter: blur(8px) saturate(160%);
102
+ -webkit-backdrop-filter: blur(8px) saturate(160%);
103
+ color: var(--color-base-content);
104
+ padding: 0.125rem 0.5rem;
105
+ font-size: 0.75rem;
106
+ opacity: 0;
107
+ animation: floating-dock-fade-in 150ms ease forwards;
108
+ }
109
+
110
+ @keyframes floating-dock-fade-in {
111
+ to {
112
+ opacity: 1;
113
+ }
114
+ }
115
+
116
+ /* -------------------------------------------------------------------------------------------------
117
+ * Mobile
118
+ * -----------------------------------------------------------------------------------------------*/
119
+ .floating-dock__mobile {
120
+ position: relative;
121
+ display: block;
122
+ }
123
+
124
+ .floating-dock__mobile-toggle {
125
+ display: flex;
126
+ align-items: center;
127
+ justify-content: center;
128
+ border-radius: 9999px;
129
+ background-color: var(--color-base-200);
130
+ border: none;
131
+ padding: 0;
132
+ cursor: pointer;
133
+ }
134
+
135
+ .floating-dock__mobile-popup {
136
+ position: absolute;
137
+ display: flex;
138
+ flex-direction: column;
139
+ gap: 0.5rem;
140
+ }
141
+
142
+ .floating-dock__mobile-popup--top {
143
+ inset: auto 0 100% 0;
144
+ margin-bottom: 0.5rem;
145
+ }
146
+
147
+ .floating-dock__mobile-popup--bottom {
148
+ inset: 100% 0 auto 0;
149
+ margin-top: 0.5rem;
150
+ }
151
+
152
+ .floating-dock__mobile-popup--left {
153
+ right: 100%;
154
+ top: 0;
155
+ margin-right: 0.5rem;
156
+ }
157
+
158
+ .floating-dock__mobile-popup--right {
159
+ left: 100%;
160
+ top: 0;
161
+ margin-left: 0.5rem;
162
+ }
163
+
164
+ .floating-dock__mobile-item {
165
+ opacity: 0;
166
+ animation: floating-dock-fade-in 200ms ease forwards;
167
+ }
168
+
169
+ .floating-dock__menu-icon {
170
+ width: 1.25rem;
171
+ height: 1.25rem;
172
+ color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
173
+ }
174
+
175
+ /* a11y */
176
+ @media (prefers-reduced-transparency: reduce) {
177
+ .floating-dock__bg,
178
+ .floating-dock__tooltip {
179
+ backdrop-filter: none;
180
+ -webkit-backdrop-filter: none;
181
+ background-color: var(--color-base-100);
182
+ }
183
+ }
184
+
185
+ /* -------------------------------------------------------------------------------------------------
186
+ * Responsive: hide desktop on small, mobile on large
187
+ * -----------------------------------------------------------------------------------------------*/
188
+ @media (max-width: 767px) {
189
+ .floating-dock__bar {
190
+ display: none;
191
+ }
192
+
193
+ /* mobileMode="dock": show the full bar on mobile instead of burger */
194
+ .floating-dock__bar--mobile-dock {
195
+ display: flex;
196
+ }
197
+ }
198
+
199
+ @media (min-width: 768px) {
200
+ .floating-dock__mobile {
201
+ display: none;
202
+ }
203
+
204
+ .floating-dock__bar--mobile-dock {
205
+ display: none;
206
+ }
207
+ }
208
+ }
@@ -1,51 +1,51 @@
1
- @layer components {
2
- .footer__title {
3
- margin-bottom: calc(0.25rem * 2);
4
- text-transform: uppercase;
5
- opacity: 60%;
6
- font-weight: 600;
7
- }
8
-
9
- .footer {
10
- display: grid;
11
- width: 100%;
12
- grid-auto-flow: row;
13
- place-items: start;
14
- column-gap: calc(0.25rem * 4);
15
- row-gap: calc(0.25rem * 10);
16
- font-size: 0.875rem;
17
- line-height: 1.25rem;
18
- }
19
-
20
- .footer > * {
21
- display: grid;
22
- place-items: start;
23
- gap: calc(0.25rem * 2);
24
- }
25
-
26
- .footer--center {
27
- grid-auto-flow: column dense;
28
- place-items: center;
29
- text-align: center;
30
- }
31
-
32
- .footer--center > * {
33
- place-items: center;
34
- }
35
-
36
- .footer--horizontal {
37
- grid-auto-flow: column;
38
- }
39
-
40
- .footer--horizontal.footer--center {
41
- grid-auto-flow: row dense;
42
- }
43
-
44
- .footer--vertical {
45
- grid-auto-flow: row;
46
- }
47
-
48
- .footer--vertical.footer--center {
49
- grid-auto-flow: column dense;
50
- }
51
- }
1
+ @layer components {
2
+ .footer__title {
3
+ margin-bottom: calc(0.25rem * 2);
4
+ text-transform: uppercase;
5
+ opacity: 60%;
6
+ font-weight: 600;
7
+ }
8
+
9
+ .footer {
10
+ display: grid;
11
+ width: 100%;
12
+ grid-auto-flow: row;
13
+ place-items: start;
14
+ column-gap: calc(0.25rem * 4);
15
+ row-gap: calc(0.25rem * 10);
16
+ font-size: 0.875rem;
17
+ line-height: 1.25rem;
18
+ }
19
+
20
+ .footer > * {
21
+ display: grid;
22
+ place-items: start;
23
+ gap: calc(0.25rem * 2);
24
+ }
25
+
26
+ .footer--center {
27
+ grid-auto-flow: column dense;
28
+ place-items: center;
29
+ text-align: center;
30
+ }
31
+
32
+ .footer--center > * {
33
+ place-items: center;
34
+ }
35
+
36
+ .footer--horizontal {
37
+ grid-auto-flow: column;
38
+ }
39
+
40
+ .footer--horizontal.footer--center {
41
+ grid-auto-flow: row dense;
42
+ }
43
+
44
+ .footer--vertical {
45
+ grid-auto-flow: row;
46
+ }
47
+
48
+ .footer--vertical.footer--center {
49
+ grid-auto-flow: column dense;
50
+ }
51
+ }
@@ -1,5 +1,5 @@
1
- @layer components {
2
- .form {
3
- display: block;
4
- }
5
- }
1
+ @layer components {
2
+ .form {
3
+ display: block;
4
+ }
5
+ }