@onereach/ui-components 2.70.3-beta.2213.0 → 2.70.3-beta.2224.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.
- package/dist/bundled/v2/{OrCardCollection-89428bbf.js → OrCardCollection-166cfcc6.js} +5 -5
- package/dist/bundled/v2/{OrConfirm-56d01cff.js → OrConfirm-55b89b17.js} +4 -4
- package/dist/bundled/v2/{OrListOfInputs-8f076650.js → OrListOfInputs-ab7f9d97.js} +4 -4
- package/dist/bundled/v2/OrNumberInput-face8ccc.js +227 -0
- package/dist/bundled/v2/OrPassword-a818e7b5.js +227 -0
- package/dist/bundled/v2/{OrSearch-f7cfa52f.js → OrSearch-832d7978.js} +4 -4
- package/dist/bundled/v2/OrSidebar-c95ef614.js +230 -0
- package/dist/bundled/v2/{OrPassword-7da938aa.js → OrTextarea-71ff236d.js} +7 -449
- package/dist/bundled/v2/components/index.d.ts +5 -1
- package/dist/bundled/v2/components/index.js +10 -8
- package/dist/bundled/v2/components/or-card-collection/index.js +4 -4
- package/dist/bundled/v2/components/or-confirm/index.js +2 -2
- package/dist/bundled/v2/components/or-input/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-input/index.js +13 -0
- package/dist/bundled/v2/components/or-list-of-inputs/index.js +2 -2
- package/dist/bundled/v2/components/or-number-input/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-number-input/index.js +14 -0
- package/dist/bundled/v2/components/or-password/index.d.ts +1 -0
- package/dist/bundled/v2/components/{or-inputs → or-password}/index.js +3 -4
- package/dist/bundled/v2/components/or-search/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-search/index.js +25 -0
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +1 -8
- package/dist/bundled/v2/components/or-textarea/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-textarea/index.js +13 -0
- package/dist/bundled/v2/index.js +10 -8
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-d8124dda.js → OrCardCollection.vue_vue_type_script_lang-cd84f344.js} +4 -4
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-0f16fc67.js → OrConfirm.vue_vue_type_script_lang-41b4d791.js} +2 -1
- package/dist/bundled/v3/{OrInput-7d4b571a.js → OrInput-704e72ba.js} +5 -193
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-409235cc.js +190 -0
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-62dbf1e7.js → OrListOfInputs.vue_vue_type_script_lang-6c5cf7a5.js} +2 -1
- package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-f061d829.js +113 -0
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-b75f6543.js +99 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-16fbccc0.js → OrSearch.vue_vue_type_script_lang-5356fa79.js} +2 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +181 -0
- package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-69ea22e9.js +187 -0
- package/dist/bundled/v3/components/index.d.ts +5 -1
- package/dist/bundled/v3/components/index.js +11 -8
- package/dist/bundled/v3/components/or-card-collection/index.js +5 -4
- package/dist/bundled/v3/components/or-confirm/index.js +3 -2
- package/dist/bundled/v3/components/or-input/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-input/index.js +14 -0
- package/dist/bundled/v3/components/or-list-of-inputs/index.js +3 -2
- package/dist/bundled/v3/components/or-number-input/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-number-input/index.js +16 -0
- package/dist/bundled/v3/components/or-password/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-password/index.js +31 -0
- package/dist/bundled/v3/components/or-search/index.d.ts +1 -0
- package/dist/bundled/v3/components/{or-inputs → or-search}/index.js +4 -5
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +1 -15
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +1 -8
- package/dist/bundled/v3/components/or-textarea/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-textarea/index.js +14 -0
- package/dist/bundled/v3/index.js +666 -677
- package/dist/esm/v2/{OrCardCollection-f6b07557.js → OrCardCollection-19582949.js} +6 -7
- package/dist/esm/v2/{OrConfirm-d7112dd3.js → OrConfirm-ede619eb.js} +4 -4
- package/dist/esm/v2/{OrSearch.vue_rollup-plugin-vue_script-197d77fc.js → OrInput-6e6cfd11.js} +4 -492
- package/dist/esm/v2/{OrListOfInputs-50aa1ef1.js → OrListOfInputs-4298fa2c.js} +5 -5
- package/dist/esm/v2/OrNumberInput-b20d75d2.js +225 -0
- package/dist/esm/v2/OrPassword-e6d5e968.js +225 -0
- package/dist/esm/v2/{OrSearch-0589d17d.js → OrSearch-b4f4d59b.js} +122 -5
- package/dist/esm/v2/OrSidebar-fabc7bc9.js +228 -0
- package/dist/esm/v2/{OrPassword-1fa97156.js → OrTextarea-91a95068.js} +187 -245
- package/dist/esm/v2/components/index.d.ts +5 -1
- package/dist/esm/v2/components/index.js +10 -8
- package/dist/esm/v2/components/or-card-collection/index.js +3 -4
- package/dist/esm/v2/components/or-confirm/index.js +2 -3
- package/dist/esm/v2/components/or-input/index.d.ts +1 -0
- package/dist/esm/v2/components/or-input/index.js +11 -0
- package/dist/esm/v2/components/or-list-of-inputs/index.js +2 -4
- package/dist/esm/v2/components/or-number-input/index.d.ts +1 -0
- package/dist/esm/v2/components/or-number-input/index.js +12 -0
- package/dist/esm/v2/components/or-password/index.d.ts +1 -0
- package/dist/esm/v2/components/{or-inputs → or-password}/index.js +5 -6
- package/dist/esm/v2/components/or-search/index.d.ts +1 -0
- package/dist/esm/v2/components/or-search/index.js +23 -0
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +1 -8
- package/dist/esm/v2/components/or-textarea/index.d.ts +1 -0
- package/dist/esm/v2/components/or-textarea/index.js +11 -0
- package/dist/esm/v2/index.js +9 -7
- package/dist/esm/v3/{OrCardCollection-a5e326ef.js → OrCardCollection-1e44c758.js} +2 -2
- package/dist/esm/v3/{OrConfirm-f39bd784.js → OrConfirm-c11ee2ec.js} +1 -1
- package/dist/esm/v3/OrInput-81125804.js +295 -0
- package/dist/esm/v3/{OrListOfInputs-7a67440f.js → OrListOfInputs-508e056f.js} +1 -1
- package/dist/esm/v3/OrNumberInput-b32b5ce3.js +170 -0
- package/dist/esm/v3/OrPassword-b0cbb578.js +162 -0
- package/dist/esm/v3/OrSearch-11fdf667.js +188 -0
- package/dist/esm/v3/OrSidebar-a62972f5.js +206 -0
- package/dist/esm/v3/OrTextarea-1f5c3be1.js +290 -0
- package/dist/esm/v3/components/index.d.ts +5 -1
- package/dist/esm/v3/components/index.js +10 -6
- package/dist/esm/v3/components/or-card-collection/index.js +3 -3
- package/dist/esm/v3/components/or-confirm/index.js +2 -3
- package/dist/esm/v3/components/or-input/index.d.ts +1 -0
- package/dist/esm/v3/components/or-input/index.js +11 -0
- package/dist/esm/v3/components/or-list-of-inputs/index.js +2 -4
- package/dist/esm/v3/components/or-number-input/index.d.ts +1 -0
- package/dist/esm/v3/components/or-number-input/index.js +12 -0
- package/dist/esm/v3/components/or-password/index.d.ts +1 -0
- package/dist/esm/v3/components/{or-inputs → or-password}/index.js +3 -2
- package/dist/esm/v3/components/or-search/index.d.ts +1 -0
- package/dist/esm/v3/components/or-search/index.js +20 -0
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -12
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +1 -8
- package/dist/esm/v3/components/or-textarea/index.d.ts +1 -0
- package/dist/esm/v3/components/or-textarea/index.js +11 -0
- package/dist/esm/v3/index.js +9 -5
- package/package.json +1 -1
- package/src/components/index.ts +5 -1
- package/src/components/or-card-collection/OrCardCollection.vue +8 -8
- package/src/components/or-confirm/OrConfirm.vue +1 -1
- package/src/components/or-input/index.ts +1 -0
- package/src/components/or-list/OrList.stories.ts +1 -1
- package/src/components/or-list-of-inputs/OrListOfInputs.vue +1 -1
- package/src/components/or-modal/OrModal.stories.ts +1 -1
- package/src/components/{or-inputs → or-number-input}/OrNumberInput.vue +1 -1
- package/src/components/or-number-input/index.ts +1 -0
- package/src/components/{or-inputs → or-password}/OrPassword.vue +1 -1
- package/src/components/or-password/index.ts +1 -0
- package/src/components/{or-inputs → or-search}/OrSearch.vue +1 -1
- package/src/components/or-search/index.ts +1 -0
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -6
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +10 -230
- package/src/components/or-sidebar-v3/OrSidebar.vue +22 -121
- package/src/components/or-sidebar-v3/styles.ts +9 -161
- package/src/components/{or-inputs → or-textarea}/OrTextarea.vue +225 -6
- package/src/components/or-textarea/index.ts +1 -0
- package/dist/bundled/v2/OrSidebar-774b382d.js +0 -462
- package/dist/bundled/v2/components/or-inputs/index.d.ts +0 -5
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-13bc5b00.js +0 -390
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-8305a28b.js +0 -354
- package/dist/bundled/v3/components/or-inputs/index.d.ts +0 -5
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v2/OrSidebar-a6ee22d1.js +0 -459
- package/dist/esm/v2/components/or-inputs/index.d.ts +0 -5
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v3/OrSearch-7cb2c91c.js +0 -1075
- package/dist/esm/v3/OrSidebar-f2150587.js +0 -394
- package/dist/esm/v3/components/or-inputs/index.d.ts +0 -5
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/src/components/or-inputs/index.ts +0 -5
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.stories3.ts +0 -48
- package/src/components/or-sidebar-v3/OrSidebarCollapseButton.vue +0 -74
- /package/dist/bundled/v2/{OrInput-08f2f666.js → OrInput-df1a14fa.js} +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/esm/v2/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/esm/v3/components/{or-inputs → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/src/components/{or-inputs → or-input}/OrInput.stories.ts +0 -0
- /package/src/components/{or-inputs → or-input}/OrInput.vue +0 -0
- /package/src/components/{or-inputs → or-input}/or-textbox-migration.stories.mdx +0 -0
- /package/src/components/{or-inputs → or-input}/styles.scss +0 -0
- /package/src/components/{or-inputs → or-number-input}/OrNumberInput.stories.ts +0 -0
- /package/src/components/{or-inputs → or-password}/OrPassword.stories.ts +0 -0
- /package/src/components/{or-inputs → or-search}/OrSearch.stories.ts +0 -0
- /package/src/components/{or-inputs → or-textarea}/OrTextarea.stories.ts +0 -0
|
@@ -4,97 +4,28 @@ export const SidebarRoot: string[] = [
|
|
|
4
4
|
// Position
|
|
5
5
|
'relative',
|
|
6
6
|
|
|
7
|
-
// Layout
|
|
8
|
-
'flex',
|
|
9
|
-
'flex-row',
|
|
10
|
-
'shrink-0',
|
|
11
|
-
|
|
12
|
-
// Box
|
|
13
|
-
'min-w-0',
|
|
14
|
-
'h-auto',
|
|
15
|
-
'p-0',
|
|
16
|
-
|
|
17
|
-
// Theme
|
|
18
|
-
'bg-background',
|
|
19
|
-
'dark:bg-background-dark',
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
export const SidebarBar: string[] = [
|
|
23
|
-
// Position
|
|
24
|
-
'relative',
|
|
25
|
-
|
|
26
7
|
// Layout
|
|
27
8
|
'flex',
|
|
28
9
|
'flex-col',
|
|
29
10
|
'shrink-0',
|
|
30
|
-
'grow',
|
|
31
11
|
|
|
32
12
|
// Box
|
|
33
13
|
'min-h-0',
|
|
34
14
|
'p-0',
|
|
35
|
-
|
|
36
|
-
// Theme
|
|
37
|
-
'text-on-background',
|
|
38
|
-
'dark:text-on-background-dark',
|
|
39
|
-
|
|
40
|
-
// Transition
|
|
41
|
-
'transition-[width]',
|
|
42
|
-
];
|
|
43
|
-
|
|
44
|
-
export const SidebarToolbar: string[] = [
|
|
45
|
-
// Position
|
|
46
|
-
'relative',
|
|
47
|
-
|
|
48
|
-
// Layout
|
|
49
|
-
'flex',
|
|
50
|
-
'flex-col',
|
|
51
|
-
'shrink-0',
|
|
52
|
-
'grow',
|
|
53
|
-
'overflow-auto',
|
|
54
|
-
'items-center',
|
|
55
|
-
|
|
56
|
-
// Sizing
|
|
57
|
-
'gap-md',
|
|
58
|
-
|
|
59
|
-
// Box
|
|
60
|
-
'min-h-0',
|
|
61
|
-
'min-w-xl',
|
|
62
|
-
'p-[6px]',
|
|
63
|
-
'pt-[56px]',
|
|
64
|
-
'pb-md+',
|
|
65
|
-
|
|
66
|
-
// Theme
|
|
67
|
-
'text-outline',
|
|
68
|
-
'dark:text-outline-dark',
|
|
69
15
|
];
|
|
70
16
|
|
|
71
|
-
export const
|
|
72
|
-
[OrSidebarPlacement.left]: [
|
|
73
|
-
// Borders
|
|
74
|
-
'border-r-[1px]',
|
|
75
|
-
'border-r-solid',
|
|
76
|
-
'border-r-outline-variant dark:border-r-outline-variant-dark',
|
|
77
|
-
],
|
|
78
|
-
[OrSidebarPlacement.right]: [
|
|
79
|
-
// Borders
|
|
80
|
-
'border-l-[1px]',
|
|
81
|
-
'border-l-solid',
|
|
82
|
-
'border-l-outline-variant dark:border-l-outline-variant-dark',
|
|
83
|
-
],
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export const SidebarToolbarSides: Record<OrSidebarPlacement, string[]> = {
|
|
17
|
+
export const SidebarRootSides: Record<OrSidebarPlacement, string[]> = {
|
|
87
18
|
[OrSidebarPlacement.left]: [
|
|
88
19
|
// Borders
|
|
89
20
|
'border-r-[1px]',
|
|
90
21
|
'border-r-solid',
|
|
91
|
-
'border-r-
|
|
22
|
+
'border-r-secondary dark:border-r-secondary-dark',
|
|
92
23
|
],
|
|
93
24
|
[OrSidebarPlacement.right]: [
|
|
94
25
|
// Borders
|
|
95
26
|
'border-l-[1px]',
|
|
96
27
|
'border-l-solid',
|
|
97
|
-
'border-l-
|
|
28
|
+
'border-l-secondary dark:border-l-secondary-dark',
|
|
98
29
|
],
|
|
99
30
|
};
|
|
100
31
|
|
|
@@ -105,7 +36,7 @@ export const SidebarResize: string[] = [
|
|
|
105
36
|
'z-[1]',
|
|
106
37
|
|
|
107
38
|
// Box
|
|
108
|
-
'w-
|
|
39
|
+
'w-[12px]',
|
|
109
40
|
'h-[100%]',
|
|
110
41
|
|
|
111
42
|
// Cursor
|
|
@@ -119,7 +50,7 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
119
50
|
|
|
120
51
|
// Borders
|
|
121
52
|
'hover:border-r-2',
|
|
122
|
-
'hover:border-r-primary
|
|
53
|
+
'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
123
54
|
|
|
124
55
|
// Transition
|
|
125
56
|
'transition-[border-right]',
|
|
@@ -130,42 +61,23 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
130
61
|
|
|
131
62
|
// Borders
|
|
132
63
|
'hover:border-l-2',
|
|
133
|
-
'hover:border-l-primary
|
|
64
|
+
'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
134
65
|
|
|
135
66
|
// Transition
|
|
136
67
|
'transition-[border-left]',
|
|
137
68
|
],
|
|
138
69
|
};
|
|
139
70
|
|
|
140
|
-
export const SidebarCollapseButton: string[] = [
|
|
141
|
-
// Position
|
|
142
|
-
'absolute',
|
|
143
|
-
'top-md',
|
|
144
|
-
'inset-y-none',
|
|
145
|
-
'z-[1]',
|
|
146
|
-
];
|
|
147
|
-
|
|
148
|
-
export const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]> = {
|
|
149
|
-
[OrSidebarPlacement.left]: [
|
|
150
|
-
// Position
|
|
151
|
-
'-right-[12px]',
|
|
152
|
-
],
|
|
153
|
-
[OrSidebarPlacement.right]: [
|
|
154
|
-
// Position
|
|
155
|
-
'-left-[12px]',
|
|
156
|
-
],
|
|
157
|
-
};
|
|
158
|
-
|
|
159
71
|
export const SidebarResizingSides: Record<OrSidebarPlacement, string[]> = {
|
|
160
72
|
[OrSidebarPlacement.left]: [
|
|
161
73
|
// Borders
|
|
162
74
|
'border-r-2',
|
|
163
|
-
'border-r-primary
|
|
75
|
+
'border-r-primary dark:border-r-primary-dark',
|
|
164
76
|
],
|
|
165
77
|
[OrSidebarPlacement.right]: [
|
|
166
78
|
// Borders
|
|
167
79
|
'border-l-2',
|
|
168
|
-
'border-l-primary
|
|
80
|
+
'border-l-primary dark:border-l-primary-dark',
|
|
169
81
|
],
|
|
170
82
|
};
|
|
171
83
|
|
|
@@ -174,24 +86,14 @@ export const SidebarMain: string[] = [
|
|
|
174
86
|
'flex',
|
|
175
87
|
'flex-col',
|
|
176
88
|
'grow',
|
|
177
|
-
'overflow-x-hidden',
|
|
178
89
|
|
|
179
90
|
// Box
|
|
180
91
|
'min-h-0',
|
|
181
92
|
];
|
|
182
93
|
|
|
183
94
|
export const SidebarHeader: string[] = [
|
|
184
|
-
// Layout
|
|
185
|
-
'shrink-0',
|
|
186
|
-
'overflow-hidden',
|
|
187
|
-
|
|
188
95
|
// Sizing
|
|
189
96
|
'p-md',
|
|
190
|
-
|
|
191
|
-
// Typography
|
|
192
|
-
'typography-headline-2',
|
|
193
|
-
'whitespace-nowrap',
|
|
194
|
-
'text-ellipsis',
|
|
195
97
|
];
|
|
196
98
|
|
|
197
99
|
export const SidebarContent: string[] = [
|
|
@@ -204,65 +106,11 @@ export const SidebarContent: string[] = [
|
|
|
204
106
|
];
|
|
205
107
|
|
|
206
108
|
export const SidebarFooter: string[] = [
|
|
207
|
-
// Layout
|
|
208
|
-
'shrink-0',
|
|
209
|
-
'overflow-x-hidden',
|
|
210
|
-
|
|
211
109
|
// Sizing
|
|
212
110
|
'p-md',
|
|
213
111
|
|
|
214
112
|
// Borders
|
|
215
113
|
'border-t-[1px]',
|
|
216
114
|
'border-t-solid',
|
|
217
|
-
'border-t-
|
|
218
|
-
];
|
|
219
|
-
|
|
220
|
-
export const CollapseButtonContainer: string[] = [
|
|
221
|
-
// Box
|
|
222
|
-
'w-[24px]',
|
|
223
|
-
'h-[24px]',
|
|
224
|
-
'rounded-full',
|
|
225
|
-
|
|
226
|
-
// Theme
|
|
227
|
-
'text-primary dark:text-primary-dark',
|
|
228
|
-
'bg-background dark:bg-background-dark',
|
|
229
|
-
];
|
|
230
|
-
|
|
231
|
-
export const CollapseButton: string[] = [
|
|
232
|
-
// Box
|
|
233
|
-
'w-[24px]',
|
|
234
|
-
'h-[24px]',
|
|
235
|
-
|
|
236
|
-
// Typography
|
|
237
|
-
'!text-[16px]',
|
|
238
|
-
|
|
239
|
-
// Borders
|
|
240
|
-
'!border-[1px]',
|
|
241
|
-
'!border-solid',
|
|
242
|
-
|
|
243
|
-
// Theme
|
|
244
|
-
'!text-primary dark:!text-primary-dark',
|
|
245
|
-
'!bg-background dark:!bg-background-dark',
|
|
246
|
-
'!border-outline-variant dark:!border-outline-variant-dark',
|
|
247
|
-
'!outline-none',
|
|
248
|
-
|
|
249
|
-
// Theme (hover)
|
|
250
|
-
'hover:!text-primary hover:dark:!text-primary-dark',
|
|
251
|
-
'hover:!bg-primary-opacity-0-08 dark:hover:!bg-primary-opacity-0-08-dark',
|
|
252
|
-
'hover:!border-outline dark:hover:!border-outline-dark',
|
|
253
|
-
|
|
254
|
-
// Theme (active)
|
|
255
|
-
'active:!text-primary active:dark:!text-primary-dark',
|
|
256
|
-
'active:!bg-primary-opacity-0-12 dark:active:!bg-primary-opacity-0-12-dark',
|
|
257
|
-
'active:!border-primary dark:active:!border-primary-dark',
|
|
258
|
-
|
|
259
|
-
// Theme (focus)
|
|
260
|
-
'focus:!text-primary focus:dark:!text-primary-dark',
|
|
261
|
-
'focus:!bg-primary-opacity-0-12 dark:focus:!bg-primary-opacity-0-12-dark',
|
|
262
|
-
'focus:!border-outline dark:focus:!border-outline-dark',
|
|
263
|
-
|
|
264
|
-
// Theme (disabled)
|
|
265
|
-
'disabled:!text-on-disabled disabled:dark:!text-on-disabled-dark',
|
|
266
|
-
'disabled:!bg-background disabled:dark:!bg-background-dark',
|
|
267
|
-
'disabled:!border-outline-variant disabled:dark:!border-outline-variant-dark',
|
|
115
|
+
'border-t-secondary dark:border-t-secondary-dark',
|
|
268
116
|
];
|
|
@@ -114,11 +114,7 @@
|
|
|
114
114
|
</template>
|
|
115
115
|
|
|
116
116
|
<script lang="ts">
|
|
117
|
-
import {
|
|
118
|
-
defineComponent,
|
|
119
|
-
ref,
|
|
120
|
-
getCurrentInstance,
|
|
121
|
-
} from 'vue-demi';
|
|
117
|
+
import { defineComponent, ref, getCurrentInstance } from 'vue-demi';
|
|
122
118
|
import { pxToRem } from '../../utils/functions/px-to-rem';
|
|
123
119
|
import {
|
|
124
120
|
cancelAF,
|
|
@@ -319,5 +315,228 @@ export default defineComponent({
|
|
|
319
315
|
</script>
|
|
320
316
|
|
|
321
317
|
<style lang="scss" scoped>
|
|
322
|
-
@
|
|
318
|
+
@use "~@onereach/styles/src/global" as *;
|
|
319
|
+
|
|
320
|
+
.or-textbox {
|
|
321
|
+
display: flex;
|
|
322
|
+
align-items: flex-start;
|
|
323
|
+
justify-content: flex-start;
|
|
324
|
+
width: 100%;
|
|
325
|
+
|
|
326
|
+
&.is-show-info.has-label {
|
|
327
|
+
align-items: center;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
&.has-label {
|
|
331
|
+
align-items: flex-end;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.or-label {
|
|
335
|
+
margin-bottom: $s-1;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
&--append,
|
|
339
|
+
&--prepend {
|
|
340
|
+
position: relative;
|
|
341
|
+
display: flex;
|
|
342
|
+
align-items: center;
|
|
343
|
+
height: px-to-rem(36);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
&--append {
|
|
347
|
+
margin-left: px-to-rem(10);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&--prepend {
|
|
351
|
+
margin-right: px-to-rem(10);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&--wrapper {
|
|
355
|
+
width: 100%;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
&--input {
|
|
359
|
+
width: 100%;
|
|
360
|
+
min-width: px-to-rem(114);
|
|
361
|
+
height: px-to-rem(36);
|
|
362
|
+
padding: px-to-rem(10);
|
|
363
|
+
font-family: inherit;
|
|
364
|
+
font-size: $fs-1;
|
|
365
|
+
background-color: $c-neutral-1;
|
|
366
|
+
border: 1px solid $c-neutral-2;
|
|
367
|
+
border-radius: $s-2;
|
|
368
|
+
outline: none;
|
|
369
|
+
|
|
370
|
+
@include transition(border-color, background-color, -webkit-box-shadow);
|
|
371
|
+
|
|
372
|
+
&-textarea {
|
|
373
|
+
/* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */
|
|
374
|
+
@extend .or-textbox--input;
|
|
375
|
+
|
|
376
|
+
min-height: px-to-rem(79);
|
|
377
|
+
max-height: px-to-rem(142);
|
|
378
|
+
overflow-x: hidden;
|
|
379
|
+
overflow-y: auto;
|
|
380
|
+
resize: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
&-wrapper {
|
|
384
|
+
position: relative;
|
|
385
|
+
width: 100%;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
&::placeholder {
|
|
389
|
+
color: $c-neutral-4;
|
|
390
|
+
|
|
391
|
+
@include transition(opacity);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&:-webkit-autofill {
|
|
395
|
+
-webkit-box-shadow: inset 0 0 0 50px $c-neutral-1;
|
|
396
|
+
|
|
397
|
+
@include focus {
|
|
398
|
+
-webkit-box-shadow: inset 0 0 0 50px $c-white;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@include hover {
|
|
403
|
+
background-color: $c-white;
|
|
404
|
+
border-color: $c-neutral-2-darken-3;
|
|
405
|
+
-webkit-box-shadow: inset 0 0 0 50px $c-white;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@include active {
|
|
409
|
+
&:not(:focus) {
|
|
410
|
+
border-color: $c-neutral-2-darken-5;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
@include focus {
|
|
415
|
+
background-color: $c-white;
|
|
416
|
+
border-color: $c-primary;
|
|
417
|
+
|
|
418
|
+
&::placeholder {
|
|
419
|
+
opacity: 0;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@include disabled {
|
|
424
|
+
background-color: $c-neutral-2;
|
|
425
|
+
border-color: $c-neutral-2;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
@include has-error {
|
|
429
|
+
border-color: $c-error;
|
|
430
|
+
|
|
431
|
+
@include hover {
|
|
432
|
+
border-color: $c-error-darken-3;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
@include focus {
|
|
436
|
+
border-color: $c-error-darken-5;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@include disabled {
|
|
440
|
+
border-color: $c-error-lighten-20;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
&--textarea {
|
|
446
|
+
/* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */
|
|
447
|
+
@extend .or-textbox--input;
|
|
448
|
+
|
|
449
|
+
min-height: px-to-rem(79);
|
|
450
|
+
max-height: px-to-rem(142);
|
|
451
|
+
overflow-x: hidden;
|
|
452
|
+
overflow-y: auto;
|
|
453
|
+
resize: none;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
&--info {
|
|
457
|
+
width: 100%;
|
|
458
|
+
margin: 0;
|
|
459
|
+
|
|
460
|
+
@include transition(height, opacity);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
&--counter {
|
|
464
|
+
flex-shrink: 0;
|
|
465
|
+
margin-left: auto;
|
|
466
|
+
font-size: $fs-0;
|
|
467
|
+
line-height: px-to-rem(14);
|
|
468
|
+
color: $c-neutral-4;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
&--hint,
|
|
472
|
+
&-error {
|
|
473
|
+
flex-shrink: 1;
|
|
474
|
+
|
|
475
|
+
@include transition(height, opacity);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
&.is-small {
|
|
479
|
+
.or-textbox {
|
|
480
|
+
&--input {
|
|
481
|
+
height: px-to-rem(30);
|
|
482
|
+
padding: px-to-rem(8) px-to-rem(10);
|
|
483
|
+
font-size: $fs-0;
|
|
484
|
+
|
|
485
|
+
&-toggle-btn {
|
|
486
|
+
.material-icons {
|
|
487
|
+
font-size: $fs-1;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
&.has-counter {
|
|
495
|
+
.or-textbox {
|
|
496
|
+
&--hint,
|
|
497
|
+
&--error {
|
|
498
|
+
padding-right: px-to-rem(15);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
&.is-show-info {
|
|
504
|
+
.or-textbox {
|
|
505
|
+
&--info {
|
|
506
|
+
display: flex;
|
|
507
|
+
align-items: flex-start;
|
|
508
|
+
justify-content: space-between;
|
|
509
|
+
padding-top: px-to-rem(4);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
@include disabled {
|
|
515
|
+
.or-textbox {
|
|
516
|
+
&--input-toggle-btn {
|
|
517
|
+
pointer-events: none;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
@include has-error {
|
|
523
|
+
.or-textbox {
|
|
524
|
+
&--input {
|
|
525
|
+
border-color: $c-error;
|
|
526
|
+
|
|
527
|
+
@include hover {
|
|
528
|
+
border-color: $c-error-darken-3;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
@include focus {
|
|
532
|
+
border-color: $c-error-darken-5;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
@include disabled {
|
|
536
|
+
border-color: $c-error;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
323
542
|
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrTextarea } from './OrTextarea.vue';
|