@auronui/styles 1.3.0 → 1.4.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.
@@ -118,6 +118,7 @@
118
118
  @import "./date-input.css";
119
119
  @import "./date-range-field.css";
120
120
  @import "./time-field.css";
121
+ @import "./time-picker.css";
121
122
  @import "./time-range-field.css";
122
123
  @import "./date-picker.css";
123
124
  @import "./date-range-picker.css";
@@ -63,6 +63,10 @@
63
63
  }
64
64
  }
65
65
 
66
+ .table__scroll-container .table {
67
+ @apply w-full;
68
+ }
69
+
66
70
  .table-root--primary {
67
71
  @apply bg-surface-secondary px-1 pb-1;
68
72
  border-radius: calc(var(--radius) * 2.5);
@@ -0,0 +1,95 @@
1
+ /* ==========================================================================
2
+ TimePicker — TimeField trigger + wheel-scroller popover
3
+ ========================================================================== */
4
+
5
+ .time-picker {
6
+ @apply inline-flex flex-col gap-1;
7
+ }
8
+
9
+ .time-picker--full-width {
10
+ @apply w-full;
11
+ }
12
+
13
+ .time-picker--invalid {
14
+ /* invalid state propagated to child TimeField via isInvalid prop */
15
+ }
16
+
17
+ .time-picker--disabled {
18
+ @apply opacity-60 cursor-not-allowed pointer-events-none;
19
+ }
20
+
21
+ /* ─── Trigger (clock icon button) ─────────────────────────────────────── */
22
+
23
+ .time-picker__trigger {
24
+ @apply inline-flex items-center justify-center rounded-field p-1 no-highlight bg-transparent border-0 cursor-pointer outline-none shrink-0;
25
+ color: var(--color-field-placeholder);
26
+ cursor: var(--cursor-interactive);
27
+
28
+ transition: box-shadow 300ms var(--ease-out);
29
+ @apply motion-reduce:transition-none;
30
+
31
+ &:focus-visible:not(:focus),
32
+ &[data-focus-visible="true"] {
33
+ @apply status-focused;
34
+ }
35
+
36
+ &:disabled,
37
+ &[data-disabled],
38
+ &[aria-disabled="true"] {
39
+ @apply status-disabled;
40
+ }
41
+ }
42
+
43
+ .time-picker__trigger-indicator {
44
+ @apply inline-flex size-4 items-center justify-center text-field-placeholder;
45
+ }
46
+
47
+ /* ─── Popover shell ───────────────────────────────────────────────────────── */
48
+
49
+ .time-picker__popover {
50
+ z-index: var(--z-popover);
51
+ @apply origin-(--trigger-anchor-point) overflow-hidden bg-overlay p-0;
52
+ min-width: 8rem;
53
+ box-shadow: var(--shadow-overlay);
54
+ border-radius: calc(var(--radius) * 2.5);
55
+
56
+ &:focus-visible:not(:focus),
57
+ &[data-focus-visible="true"] {
58
+ @apply outline-none;
59
+ }
60
+
61
+ & {
62
+ @apply animate-in duration-300 ease-smooth fade-in-0 zoom-in-95;
63
+
64
+ &[data-placement^="top"] {
65
+ @apply slide-in-from-bottom-1;
66
+ }
67
+
68
+ &[data-placement^="bottom"] {
69
+ @apply slide-in-from-top-1;
70
+ }
71
+
72
+ &[data-placement^="left"] {
73
+ @apply slide-in-from-right-1;
74
+ }
75
+
76
+ &[data-placement^="right"] {
77
+ @apply slide-in-from-left-1;
78
+ }
79
+ }
80
+
81
+ &,
82
+ & {
83
+ @apply will-change-[opacity,transform];
84
+ }
85
+ }
86
+
87
+ /* ─── Panel (wheels stacked above the Done button) ───────────────────────── */
88
+
89
+ .time-picker__panel {
90
+ @apply flex flex-col;
91
+ }
92
+
93
+ .time-picker__time-done {
94
+ @apply flex justify-end px-3 pb-3 pt-1;
95
+ }
@@ -78,6 +78,7 @@ export * from './tabs';
78
78
  export * from './text';
79
79
  export * from './textarea';
80
80
  export * from './time-field';
81
+ export * from './time-picker';
81
82
  export * from './time-range-field';
82
83
  export * from './toast';
83
84
  export * from './toggle-button';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AAC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5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './time-picker.styles';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/time-picker/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { timePickerVariants } from "./time-picker.styles.js";
2
+ export { timePickerVariants };
@@ -0,0 +1,82 @@
1
+ import { VariantProps } from '../../utils';
2
+ export declare const timePickerVariants: import('tailwind-variants').TVReturnType<{
3
+ isInvalid: {
4
+ true: {
5
+ base: string;
6
+ };
7
+ false: {};
8
+ };
9
+ isDisabled: {
10
+ true: {
11
+ base: string;
12
+ };
13
+ false: {};
14
+ };
15
+ fullWidth: {
16
+ true: {
17
+ base: string;
18
+ };
19
+ false: {};
20
+ };
21
+ }, {
22
+ base: string;
23
+ popover: string;
24
+ trigger: string;
25
+ triggerIndicator: string;
26
+ panel: string;
27
+ timeDone: string;
28
+ }, undefined, {
29
+ isInvalid: {
30
+ true: {
31
+ base: string;
32
+ };
33
+ false: {};
34
+ };
35
+ isDisabled: {
36
+ true: {
37
+ base: string;
38
+ };
39
+ false: {};
40
+ };
41
+ fullWidth: {
42
+ true: {
43
+ base: string;
44
+ };
45
+ false: {};
46
+ };
47
+ }, {
48
+ base: string;
49
+ popover: string;
50
+ trigger: string;
51
+ triggerIndicator: string;
52
+ panel: string;
53
+ timeDone: string;
54
+ }, import('tailwind-variants').TVReturnType<{
55
+ isInvalid: {
56
+ true: {
57
+ base: string;
58
+ };
59
+ false: {};
60
+ };
61
+ isDisabled: {
62
+ true: {
63
+ base: string;
64
+ };
65
+ false: {};
66
+ };
67
+ fullWidth: {
68
+ true: {
69
+ base: string;
70
+ };
71
+ false: {};
72
+ };
73
+ }, {
74
+ base: string;
75
+ popover: string;
76
+ trigger: string;
77
+ triggerIndicator: string;
78
+ panel: string;
79
+ timeDone: string;
80
+ }, undefined, unknown, unknown, undefined>>;
81
+ export type TimePickerVariants = VariantProps<typeof timePickerVariants>;
82
+ //# sourceMappingURL=time-picker.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.styles.d.ts","sourceRoot":"","sources":["../../../src/components/time-picker/time-picker.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAI9C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA4B7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { tv } from "tailwind-variants";
2
+ //#region src/components/time-picker/time-picker.styles.ts
3
+ var timePickerVariants = tv({
4
+ slots: {
5
+ base: "time-picker",
6
+ popover: "time-picker__popover",
7
+ trigger: "time-picker__trigger",
8
+ triggerIndicator: "time-picker__trigger-indicator",
9
+ panel: "time-picker__panel",
10
+ timeDone: "time-picker__time-done"
11
+ },
12
+ defaultVariants: {
13
+ isInvalid: false,
14
+ isDisabled: false,
15
+ fullWidth: false
16
+ },
17
+ variants: {
18
+ isInvalid: {
19
+ true: { base: "time-picker--invalid" },
20
+ false: {}
21
+ },
22
+ isDisabled: {
23
+ true: { base: "time-picker--disabled" },
24
+ false: {}
25
+ },
26
+ fullWidth: {
27
+ true: { base: "time-picker--full-width" },
28
+ false: {}
29
+ }
30
+ }
31
+ });
32
+ //#endregion
33
+ export { timePickerVariants };
34
+
35
+ //# sourceMappingURL=time-picker.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.styles.js","names":[],"sources":["../../../src/components/time-picker/time-picker.styles.ts"],"sourcesContent":["import type {VariantProps} from \"../../utils\";\n\nimport {tv} from \"tailwind-variants\";\n\nexport const timePickerVariants = tv({\n slots: {\n base: \"time-picker\",\n popover: \"time-picker__popover\",\n trigger: \"time-picker__trigger\",\n triggerIndicator: \"time-picker__trigger-indicator\",\n panel: \"time-picker__panel\",\n timeDone: \"time-picker__time-done\",\n },\n defaultVariants: {\n isInvalid: false,\n isDisabled: false,\n fullWidth: false,\n },\n variants: {\n isInvalid: {\n true: {base: \"time-picker--invalid\"},\n false: {},\n },\n isDisabled: {\n true: {base: \"time-picker--disabled\"},\n false: {},\n },\n fullWidth: {\n true: {base: \"time-picker--full-width\"},\n false: {},\n },\n },\n});\n\nexport type TimePickerVariants = VariantProps<typeof timePickerVariants>;\n"],"mappings":";;AAIA,IAAa,qBAAqB,GAAG;CACnC,OAAO;EACL,MAAM;EACN,SAAS;EACT,SAAS;EACT,kBAAkB;EAClB,OAAO;EACP,UAAU;EACX;CACD,iBAAiB;EACf,WAAW;EACX,YAAY;EACZ,WAAW;EACZ;CACD,UAAU;EACR,WAAW;GACT,MAAM,EAAC,MAAM,wBAAuB;GACpC,OAAO,EAAE;GACV;EACD,YAAY;GACV,MAAM,EAAC,MAAM,yBAAwB;GACrC,OAAO,EAAE;GACV;EACD,WAAW;GACT,MAAM,EAAC,MAAM,2BAA0B;GACvC,OAAO,EAAE;GACV;EACF;CACF,CAAC"}
package/dist/index.js CHANGED
@@ -79,6 +79,7 @@ import { tabsVariants } from "./components/tabs/tabs.styles.js";
79
79
  import { textVariants } from "./components/text/text.styles.js";
80
80
  import { textAreaVariants } from "./components/textarea/textarea.styles.js";
81
81
  import { timeFieldVariants } from "./components/time-field/time-field.styles.js";
82
+ import { timePickerVariants } from "./components/time-picker/time-picker.styles.js";
82
83
  import { timeRangeFieldVariants } from "./components/time-range-field/time-range-field.styles.js";
83
84
  import { toastVariants } from "./components/toast/toast.styles.js";
84
85
  import { toggleButtonVariants } from "./components/toggle-button/toggle-button.styles.js";
@@ -89,4 +90,4 @@ import { aspectRatioVariants } from "./components/aspect-ratio/aspect-ratio.styl
89
90
  import { splitterVariants } from "./components/splitter/splitter.styles.js";
90
91
  import { stepperVariants } from "./components/stepper/stepper.styles.js";
91
92
  import { treeVariants } from "./components/tree/tree.styles.js";
92
- export { accordionVariants, alertDialogVariants, alertVariants, ariaDisabledClasses, aspectRatioVariants, autocompleteVariants, avatarVariants, badgeVariants, breadcrumbsVariants, buttonGroupVariants, buttonVariants, calendarVariants, calendarYearPickerVariants, cardVariants, checkboxGroupVariants, checkboxVariants, chipVariants, closeButtonVariants, collapsibleGroupVariants, collapsibleVariants, colorAreaVariants, colorFieldVariants, colorInputGroupVariants, colorPickerVariants, colorSliderVariants, colorSwatchPickerVariants, colorSwatchVariants, comboBoxVariants, contextMenuVariants, dateInputVariants, datePickerVariants, dateRangeFieldVariants, dateRangePickerVariants, dateTimePickerVariants, descriptionVariants, disabledClasses, drawerVariants, dropdownVariants, editableVariants, emptyStateVariants, errorMessageVariants, fieldsetVariants, focusRingClasses, headerVariants, hoverCardVariants, inputOTPVariants, inputVariants, kbdVariants, labelVariants, linkVariants, listboxItemVariants, listboxSectionVariants, listboxVariants, menuItemVariants, menuSectionVariants, menuVariants, menubarVariants, meterVariants, modalVariants, monthRangePickerVariants, navigationMenuVariants, numberFieldVariants, paginationVariants, popoverVariants, progressBarVariants, progressCircleVariants, radioGroupVariants, radioVariants, rangeCalendarVariants, scrollShadowVariants, selectVariants, separatorVariants, skeletonVariants, sliderVariants, spinnerVariants, splitterVariants, stepperVariants, surfaceVariants, switchGroupVariants, switchVariants, tableVariants, tabsVariants, textAreaVariants, textVariants, timeFieldVariants, timeRangeFieldVariants, toastVariants, toggleButtonGroupVariants, toggleButtonVariants, toolbarVariants, tooltipVariants, treeVariants, yearRangePickerVariants };
93
+ export { accordionVariants, alertDialogVariants, alertVariants, ariaDisabledClasses, aspectRatioVariants, autocompleteVariants, avatarVariants, badgeVariants, breadcrumbsVariants, buttonGroupVariants, buttonVariants, calendarVariants, calendarYearPickerVariants, cardVariants, checkboxGroupVariants, checkboxVariants, chipVariants, closeButtonVariants, collapsibleGroupVariants, collapsibleVariants, colorAreaVariants, colorFieldVariants, colorInputGroupVariants, colorPickerVariants, colorSliderVariants, colorSwatchPickerVariants, colorSwatchVariants, comboBoxVariants, contextMenuVariants, dateInputVariants, datePickerVariants, dateRangeFieldVariants, dateRangePickerVariants, dateTimePickerVariants, descriptionVariants, disabledClasses, drawerVariants, dropdownVariants, editableVariants, emptyStateVariants, errorMessageVariants, fieldsetVariants, focusRingClasses, headerVariants, hoverCardVariants, inputOTPVariants, inputVariants, kbdVariants, labelVariants, linkVariants, listboxItemVariants, listboxSectionVariants, listboxVariants, menuItemVariants, menuSectionVariants, menuVariants, menubarVariants, meterVariants, modalVariants, monthRangePickerVariants, navigationMenuVariants, numberFieldVariants, paginationVariants, popoverVariants, progressBarVariants, progressCircleVariants, radioGroupVariants, radioVariants, rangeCalendarVariants, scrollShadowVariants, selectVariants, separatorVariants, skeletonVariants, sliderVariants, spinnerVariants, splitterVariants, stepperVariants, surfaceVariants, switchGroupVariants, switchVariants, tableVariants, tabsVariants, textAreaVariants, textVariants, timeFieldVariants, timePickerVariants, timeRangeFieldVariants, toastVariants, toggleButtonGroupVariants, toggleButtonVariants, toolbarVariants, tooltipVariants, treeVariants, yearRangePickerVariants };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auronui/styles",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "Auron core styles — adapted for Reka UI",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -79,6 +79,7 @@ export * from "./tabs";
79
79
  export * from "./text";
80
80
  export * from "./textarea";
81
81
  export * from "./time-field";
82
+ export * from "./time-picker";
82
83
  export * from "./time-range-field";
83
84
  export * from "./toast";
84
85
  export * from "./toggle-button";
@@ -0,0 +1 @@
1
+ export * from "./time-picker.styles";
@@ -0,0 +1,35 @@
1
+ import type {VariantProps} from "../../utils";
2
+
3
+ import {tv} from "tailwind-variants";
4
+
5
+ export const timePickerVariants = tv({
6
+ slots: {
7
+ base: "time-picker",
8
+ popover: "time-picker__popover",
9
+ trigger: "time-picker__trigger",
10
+ triggerIndicator: "time-picker__trigger-indicator",
11
+ panel: "time-picker__panel",
12
+ timeDone: "time-picker__time-done",
13
+ },
14
+ defaultVariants: {
15
+ isInvalid: false,
16
+ isDisabled: false,
17
+ fullWidth: false,
18
+ },
19
+ variants: {
20
+ isInvalid: {
21
+ true: {base: "time-picker--invalid"},
22
+ false: {},
23
+ },
24
+ isDisabled: {
25
+ true: {base: "time-picker--disabled"},
26
+ false: {},
27
+ },
28
+ fullWidth: {
29
+ true: {base: "time-picker--full-width"},
30
+ false: {},
31
+ },
32
+ },
33
+ });
34
+
35
+ export type TimePickerVariants = VariantProps<typeof timePickerVariants>;