@neo4j-ndl/react 4.0.19 → 4.1.2
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/lib/cjs/date-picker/DatePicker.js +11 -3
- package/lib/cjs/date-picker/DatePicker.js.map +1 -1
- package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js +57 -0
- package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker-with-timezone.story.js +52 -0
- package/lib/cjs/date-picker/stories/date-picker-with-timezone.story.js.map +1 -0
- package/lib/cjs/date-picker/stories/date-picker.stories.js +27 -1
- package/lib/cjs/date-picker/stories/date-picker.stories.js.map +1 -1
- package/lib/cjs/date-picker/stories/index.js +9 -1
- package/lib/cjs/date-picker/stories/index.js.map +1 -1
- package/lib/cjs/dropzone/Dropzone.js +1 -1
- package/lib/cjs/dropzone/Dropzone.js.map +1 -1
- package/lib/cjs/index.js +4 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/time-picker/TimePicker.js.map +1 -1
- package/lib/cjs/timezone-picker/TimeZonePicker.js +330 -0
- package/lib/cjs/timezone-picker/TimeZonePicker.js.map +1 -0
- package/lib/cjs/timezone-picker/generate-timezone-options.js +256 -0
- package/lib/cjs/timezone-picker/generate-timezone-options.js.map +1 -0
- package/lib/cjs/timezone-picker/index.js +39 -0
- package/lib/cjs/timezone-picker/index.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/index.js +60 -0
- package/lib/cjs/timezone-picker/stories/index.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-both-mode.story.js +41 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-both-mode.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-default.story.js +35 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-default.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-disabled.story.js +30 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-disabled.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-dst-aware.story.js +54 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-dst-aware.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-fluid.story.js +30 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-fluid.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js +47 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-sizes.story.js +32 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-sizes.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-utc-only.story.js +49 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker-utc-only.story.js.map +1 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker.stories.js +145 -0
- package/lib/cjs/timezone-picker/stories/timezone-picker.stories.js.map +1 -0
- package/lib/cjs/timezone-picker/timezone-picker-hooks.js +52 -0
- package/lib/cjs/timezone-picker/timezone-picker-hooks.js.map +1 -0
- package/lib/esm/date-picker/DatePicker.js +11 -3
- package/lib/esm/date-picker/DatePicker.js.map +1 -1
- package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js +53 -0
- package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker-with-timezone.story.js +50 -0
- package/lib/esm/date-picker/stories/date-picker-with-timezone.story.js.map +1 -0
- package/lib/esm/date-picker/stories/date-picker.stories.js +27 -1
- package/lib/esm/date-picker/stories/date-picker.stories.js.map +1 -1
- package/lib/esm/date-picker/stories/index.js +6 -0
- package/lib/esm/date-picker/stories/index.js.map +1 -1
- package/lib/esm/dropzone/Dropzone.js +1 -1
- package/lib/esm/dropzone/Dropzone.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/time-picker/TimePicker.js +4 -4
- package/lib/esm/time-picker/TimePicker.js.map +1 -1
- package/lib/esm/timezone-picker/TimeZonePicker.js +323 -0
- package/lib/esm/timezone-picker/TimeZonePicker.js.map +1 -0
- package/lib/esm/timezone-picker/generate-timezone-options.js +247 -0
- package/lib/esm/timezone-picker/generate-timezone-options.js.map +1 -0
- package/lib/esm/timezone-picker/index.js +23 -0
- package/lib/esm/timezone-picker/index.js.map +1 -0
- package/lib/esm/timezone-picker/stories/index.js +46 -0
- package/lib/esm/timezone-picker/stories/index.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-both-mode.story.js +37 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-both-mode.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-default.story.js +33 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-default.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-disabled.story.js +28 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-disabled.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-dst-aware.story.js +52 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-dst-aware.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-fluid.story.js +28 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-fluid.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js +45 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-in-dialog.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-sizes.story.js +30 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-sizes.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-utc-only.story.js +47 -0
- package/lib/esm/timezone-picker/stories/timezone-picker-utc-only.story.js.map +1 -0
- package/lib/esm/timezone-picker/stories/timezone-picker.stories.js +142 -0
- package/lib/esm/timezone-picker/stories/timezone-picker.stories.js.map +1 -0
- package/lib/esm/timezone-picker/timezone-picker-hooks.js +47 -0
- package/lib/esm/timezone-picker/timezone-picker-hooks.js.map +1 -0
- package/lib/types/date-picker/DatePicker.d.ts +4 -1
- package/lib/types/date-picker/DatePicker.d.ts.map +1 -1
- package/lib/types/date-picker/stories/date-picker-with-timezone-both-mode.story.d.ts +23 -0
- package/lib/types/date-picker/stories/date-picker-with-timezone-both-mode.story.d.ts.map +1 -0
- package/lib/types/date-picker/stories/date-picker-with-timezone.story.d.ts +24 -0
- package/lib/types/date-picker/stories/date-picker-with-timezone.story.d.ts.map +1 -0
- package/lib/types/date-picker/stories/date-picker.stories.d.ts +2 -0
- package/lib/types/date-picker/stories/date-picker.stories.d.ts.map +1 -1
- package/lib/types/date-picker/stories/index.d.ts +4 -0
- package/lib/types/date-picker/stories/index.d.ts.map +1 -1
- package/lib/types/dropzone/Dropzone.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/timezone-picker/TimeZonePicker.d.ts +68 -0
- package/lib/types/timezone-picker/TimeZonePicker.d.ts.map +1 -0
- package/lib/types/timezone-picker/generate-timezone-options.d.ts +61 -0
- package/lib/types/timezone-picker/generate-timezone-options.d.ts.map +1 -0
- package/lib/types/timezone-picker/index.d.ts +23 -0
- package/lib/types/timezone-picker/index.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/index.d.ts +37 -0
- package/lib/types/timezone-picker/stories/index.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-both-mode.story.d.ts +23 -0
- package/lib/types/timezone-picker/stories/timezone-picker-both-mode.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-default.story.d.ts +24 -0
- package/lib/types/timezone-picker/stories/timezone-picker-default.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-disabled.story.d.ts +24 -0
- package/lib/types/timezone-picker/stories/timezone-picker-disabled.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-dst-aware.story.d.ts +24 -0
- package/lib/types/timezone-picker/stories/timezone-picker-dst-aware.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-fluid.story.d.ts +24 -0
- package/lib/types/timezone-picker/stories/timezone-picker-fluid.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-in-dialog.story.d.ts +24 -0
- package/lib/types/timezone-picker/stories/timezone-picker-in-dialog.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-sizes.story.d.ts +24 -0
- package/lib/types/timezone-picker/stories/timezone-picker-sizes.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker-utc-only.story.d.ts +24 -0
- package/lib/types/timezone-picker/stories/timezone-picker-utc-only.story.d.ts.map +1 -0
- package/lib/types/timezone-picker/stories/timezone-picker.stories.d.ts +34 -0
- package/lib/types/timezone-picker/stories/timezone-picker.stories.d.ts.map +1 -0
- package/lib/types/timezone-picker/timezone-picker-hooks.d.ts +31 -0
- package/lib/types/timezone-picker/timezone-picker-hooks.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
+
import { TimeZonePicker } from '../TimeZonePicker';
|
|
24
|
+
import { TimeZonePickerBothMode, TimeZonePickerBothModeSource, TimeZonePickerDefault, TimeZonePickerDefaultSource, TimeZonePickerDisabled, TimeZonePickerDisabledSource, TimeZonePickerDSTAware, TimeZonePickerDSTAwareSource, TimeZonePickerFluid, TimeZonePickerFluidSource, TimeZonePickerInDialog, TimeZonePickerInDialogSource, TimeZonePickerSizes, TimeZonePickerSizesSource, TimeZonePickerUTCOnly, TimeZonePickerUTCOnlySource, } from './';
|
|
25
|
+
const componentMeta = {
|
|
26
|
+
component: TimeZonePicker,
|
|
27
|
+
decorators: [
|
|
28
|
+
(Story) => (_jsx("div", { className: "n-flex n-justify-center", children: _jsx(Story, {}) })),
|
|
29
|
+
],
|
|
30
|
+
id: 'components-timezone-picker',
|
|
31
|
+
parameters: {
|
|
32
|
+
controls: { disable: true },
|
|
33
|
+
},
|
|
34
|
+
tags: ['docsPage'],
|
|
35
|
+
title: 'Components/TimeZonePicker',
|
|
36
|
+
};
|
|
37
|
+
export default componentMeta;
|
|
38
|
+
export const Default = {
|
|
39
|
+
args: {},
|
|
40
|
+
parameters: {
|
|
41
|
+
docs: {
|
|
42
|
+
source: {
|
|
43
|
+
code: TimeZonePickerDefaultSource,
|
|
44
|
+
language: 'tsx',
|
|
45
|
+
type: 'code',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
render: TimeZonePickerDefault,
|
|
50
|
+
};
|
|
51
|
+
export const Fluid = {
|
|
52
|
+
args: {},
|
|
53
|
+
parameters: {
|
|
54
|
+
docs: {
|
|
55
|
+
source: {
|
|
56
|
+
code: TimeZonePickerFluidSource,
|
|
57
|
+
language: 'tsx',
|
|
58
|
+
type: 'code',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
render: TimeZonePickerFluid,
|
|
63
|
+
};
|
|
64
|
+
export const Sizes = {
|
|
65
|
+
args: {},
|
|
66
|
+
parameters: {
|
|
67
|
+
docs: {
|
|
68
|
+
source: {
|
|
69
|
+
code: TimeZonePickerSizesSource,
|
|
70
|
+
language: 'tsx',
|
|
71
|
+
type: 'code',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
render: TimeZonePickerSizes,
|
|
76
|
+
};
|
|
77
|
+
export const Disabled = {
|
|
78
|
+
args: {},
|
|
79
|
+
parameters: {
|
|
80
|
+
docs: {
|
|
81
|
+
source: {
|
|
82
|
+
code: TimeZonePickerDisabledSource,
|
|
83
|
+
language: 'tsx',
|
|
84
|
+
type: 'code',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
render: TimeZonePickerDisabled,
|
|
89
|
+
};
|
|
90
|
+
export const DSTAware = {
|
|
91
|
+
args: {},
|
|
92
|
+
parameters: {
|
|
93
|
+
docs: {
|
|
94
|
+
source: {
|
|
95
|
+
code: TimeZonePickerDSTAwareSource,
|
|
96
|
+
language: 'tsx',
|
|
97
|
+
type: 'code',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
render: TimeZonePickerDSTAware,
|
|
102
|
+
};
|
|
103
|
+
export const UTCOnly = {
|
|
104
|
+
args: {},
|
|
105
|
+
parameters: {
|
|
106
|
+
docs: {
|
|
107
|
+
source: {
|
|
108
|
+
code: TimeZonePickerUTCOnlySource,
|
|
109
|
+
language: 'tsx',
|
|
110
|
+
type: 'code',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
render: TimeZonePickerUTCOnly,
|
|
115
|
+
};
|
|
116
|
+
export const BothMode = {
|
|
117
|
+
args: {},
|
|
118
|
+
parameters: {
|
|
119
|
+
docs: {
|
|
120
|
+
source: {
|
|
121
|
+
code: TimeZonePickerBothModeSource,
|
|
122
|
+
language: 'tsx',
|
|
123
|
+
type: 'code',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
render: TimeZonePickerBothMode,
|
|
128
|
+
};
|
|
129
|
+
export const InDialog = {
|
|
130
|
+
args: {},
|
|
131
|
+
parameters: {
|
|
132
|
+
docs: {
|
|
133
|
+
source: {
|
|
134
|
+
code: TimeZonePickerInDialogSource,
|
|
135
|
+
language: 'tsx',
|
|
136
|
+
type: 'code',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
render: TimeZonePickerInDialog,
|
|
141
|
+
};
|
|
142
|
+
//# sourceMappingURL=timezone-picker.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone-picker.stories.js","sourceRoot":"","sources":["../../../../src/timezone-picker/stories/timezone-picker.stories.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACL,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,EACrB,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,4BAA4B,EAC5B,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,GAC5B,MAAM,IAAI,CAAC;AAEZ,MAAM,aAAa,GAAgC;IACjD,SAAS,EAAE,cAAc;IACzB,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,cAAK,SAAS,EAAC,yBAAyB,YACtC,KAAC,KAAK,KAAG,GACL,CACP;KACF;IACD,EAAE,EAAE,4BAA4B;IAChC,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,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AAM;aACb;SACF;KACF;IACD,MAAM,EAAE,sBAAsB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,2BAA2B;gBACjC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,qBAAqB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,4BAA4B;gBAClC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,sBAAsB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,4BAA4B;gBAClC,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,sBAAsB;CAC/B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport { type Meta, type StoryObj } from '@storybook/react-vite';\n\nimport { TimeZonePicker } from '../TimeZonePicker';\nimport {\n TimeZonePickerBothMode,\n TimeZonePickerBothModeSource,\n TimeZonePickerDefault,\n TimeZonePickerDefaultSource,\n TimeZonePickerDisabled,\n TimeZonePickerDisabledSource,\n TimeZonePickerDSTAware,\n TimeZonePickerDSTAwareSource,\n TimeZonePickerFluid,\n TimeZonePickerFluidSource,\n TimeZonePickerInDialog,\n TimeZonePickerInDialogSource,\n TimeZonePickerSizes,\n TimeZonePickerSizesSource,\n TimeZonePickerUTCOnly,\n TimeZonePickerUTCOnlySource,\n} from './';\n\nconst componentMeta: Meta<typeof TimeZonePicker> = {\n component: TimeZonePicker,\n decorators: [\n (Story) => (\n <div className=\"n-flex n-justify-center\">\n <Story />\n </div>\n ),\n ],\n id: 'components-timezone-picker',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/TimeZonePicker',\n};\n\nexport default componentMeta;\ntype Story = StoryObj<typeof componentMeta>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerDefault,\n};\n\nexport const Fluid: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerFluidSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerFluid,\n};\n\nexport const Sizes: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerSizesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerSizes,\n};\n\nexport const Disabled: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerDisabledSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerDisabled,\n};\n\nexport const DSTAware: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerDSTAwareSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerDSTAware,\n};\n\nexport const UTCOnly: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerUTCOnlySource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerUTCOnly,\n};\n\nexport const BothMode: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerBothModeSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerBothMode,\n};\n\nexport const InDialog: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: TimeZonePickerInDialogSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: TimeZonePickerInDialog,\n};\n"]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
22
|
+
export const useTimeZonePickerPopover = (initialState) => {
|
|
23
|
+
const [isPopoverOpen, setIsPopoverOpen] = useState(initialState);
|
|
24
|
+
return { isPopoverOpen, setIsPopoverOpen };
|
|
25
|
+
};
|
|
26
|
+
export const useKeyboardNavigation = (optionsLength) => {
|
|
27
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setFocusedIndex(0);
|
|
30
|
+
}, [optionsLength]);
|
|
31
|
+
const handleArrowNavigation = useCallback((key) => {
|
|
32
|
+
if (key === 'ArrowDown') {
|
|
33
|
+
setFocusedIndex((prevIndex) => {
|
|
34
|
+
const newIndex = (prevIndex + 1) % optionsLength;
|
|
35
|
+
return newIndex;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
else if (key === 'ArrowUp') {
|
|
39
|
+
setFocusedIndex((prevIndex) => {
|
|
40
|
+
const newIndex = (prevIndex - 1 + optionsLength) % optionsLength;
|
|
41
|
+
return newIndex;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}, [optionsLength]);
|
|
45
|
+
return { focusedIndex, handleArrowNavigation, setFocusedIndex };
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=timezone-picker-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone-picker-hooks.js","sourceRoot":"","sources":["../../../src/timezone-picker/timezone-picker-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,YAAqB,EAAE,EAAE;IAChE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IACjE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,aAAqB,EAAE,EAAE;IAC7D,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpD,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,MAAM,qBAAqB,GAAG,WAAW,CACvC,CAAC,GAAW,EAAE,EAAE;QACd,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;YACxB,eAAe,CAAC,CAAC,SAAS,EAAE,EAAE;gBAC5B,MAAM,QAAQ,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,aAAa,CAAC;gBACjD,OAAO,QAAQ,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YAC7B,eAAe,CAAC,CAAC,SAAS,EAAE,EAAE;gBAC5B,MAAM,QAAQ,GAAG,CAAC,SAAS,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,aAAa,CAAC;gBACjE,OAAO,QAAQ,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,EACD,CAAC,aAAa,CAAC,CAChB,CAAC;IAEF,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,CAAC;AAClE,CAAC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport { useCallback, useEffect, useState } from 'react';\n\nexport const useTimeZonePickerPopover = (initialState: boolean) => {\n const [isPopoverOpen, setIsPopoverOpen] = useState(initialState);\n return { isPopoverOpen, setIsPopoverOpen };\n};\n\nexport const useKeyboardNavigation = (optionsLength: number) => {\n const [focusedIndex, setFocusedIndex] = useState(0);\n\n useEffect(() => {\n setFocusedIndex(0);\n }, [optionsLength]);\n\n const handleArrowNavigation = useCallback(\n (key: string) => {\n if (key === 'ArrowDown') {\n setFocusedIndex((prevIndex) => {\n const newIndex = (prevIndex + 1) % optionsLength;\n return newIndex;\n });\n } else if (key === 'ArrowUp') {\n setFocusedIndex((prevIndex) => {\n const newIndex = (prevIndex - 1 + optionsLength) % optionsLength;\n return newIndex;\n });\n }\n },\n [optionsLength],\n );\n\n return { focusedIndex, handleArrowNavigation, setFocusedIndex };\n};\n"]}
|
|
@@ -23,6 +23,7 @@ import ReactDatePicker from 'react-datepicker';
|
|
|
23
23
|
import type { CommonProps } from '../_common/types';
|
|
24
24
|
import { TextInput } from '../text-input';
|
|
25
25
|
import { type TimePickerProps } from '../time-picker';
|
|
26
|
+
import { TimeZonePicker } from '../timezone-picker';
|
|
26
27
|
interface DatePickerProps {
|
|
27
28
|
/** Props for the embedded `TextInput` component. */
|
|
28
29
|
textInputProps?: React.ComponentProps<typeof TextInput>;
|
|
@@ -30,9 +31,11 @@ interface DatePickerProps {
|
|
|
30
31
|
isDisabled?: boolean;
|
|
31
32
|
/** Props for the embedded `TimePicker` component. */
|
|
32
33
|
timePickerProps?: TimePickerProps;
|
|
34
|
+
/** Props for the embedded `TimeZonePicker` component. */
|
|
35
|
+
timeZonePickerProps?: React.ComponentProps<typeof TimeZonePicker>;
|
|
33
36
|
/** Props forwarded to underlying `react-datepicker` component. */
|
|
34
37
|
reactDatePickerProps: React.ComponentProps<typeof ReactDatePicker>;
|
|
35
38
|
}
|
|
36
|
-
export declare const DatePicker: ({ reactDatePickerProps, textInputProps, timePickerProps, isDisabled, ref, className, style, htmlAttributes, ...restProps }: CommonProps<"div", DatePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const DatePicker: ({ reactDatePickerProps, textInputProps, timePickerProps, timeZonePickerProps, isDisabled, ref, className, style, htmlAttributes, ...restProps }: CommonProps<"div", DatePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
37
40
|
export {};
|
|
38
41
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"AA0BA,OAAO,eAEN,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAUpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/date-picker/DatePicker.tsx"],"names":[],"mappings":"AA0BA,OAAO,eAEN,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAUpD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAgEpD,UAAU,eAAe;IACvB,oDAAoD;IACpD,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;IACxD,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;IAClE,kEAAkE;IAClE,oBAAoB,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,UAAU,GAAI,iJAWxB,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,4CA2TrC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export declare const DatePickerWithTimeZoneBothMode: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default DatePickerWithTimeZoneBothMode;
|
|
23
|
+
//# sourceMappingURL=date-picker-with-timezone-both-mode.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker-with-timezone-both-mode.story.d.ts","sourceRoot":"","sources":["../../../../src/date-picker/stories/date-picker-with-timezone-both-mode.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,eAAO,MAAM,8BAA8B,+CAgE1C,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
24
|
+
//# sourceMappingURL=date-picker-with-timezone.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker-with-timezone.story.d.ts","sourceRoot":"","sources":["../../../../src/date-picker/stories/date-picker-with-timezone.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAKjD,QAAA,MAAM,SAAS,+CA6Cd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -29,9 +29,11 @@ export declare const MinMaxDate: Story;
|
|
|
29
29
|
export declare const OpensToDate: Story;
|
|
30
30
|
export declare const TextInputProps: Story;
|
|
31
31
|
export declare const WithTimePicker: Story;
|
|
32
|
+
export declare const WithTimeZone: Story;
|
|
32
33
|
export declare const Disabled: Story;
|
|
33
34
|
export declare const InDialog: Story;
|
|
34
35
|
export declare const Full: Story;
|
|
35
36
|
export declare const Range: Story;
|
|
36
37
|
export declare const Portaled: Story;
|
|
38
|
+
export declare const WithTimeZoneBothMode: Story;
|
|
37
39
|
//# sourceMappingURL=date-picker.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.stories.d.ts","sourceRoot":"","sources":["../../../../src/date-picker/stories/date-picker.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"date-picker.stories.d.ts","sourceRoot":"","sources":["../../../../src/date-picker/stories/date-picker.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA8B3C,QAAA,MAAM,aAAa,EAAE,IAAI,CAAC,OAAO,UAAU,CAe1C,CAAC;AAEF,eAAe,aAAa,CAAC;AAC7B,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAY5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAYxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAY5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAY5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAYlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAYlC,CAAC"}
|
|
@@ -24,6 +24,8 @@ export { default as DatePickerMinMaxDate } from './date-picker-min-max-date.stor
|
|
|
24
24
|
export { default as DatePickerOpensToDate } from './date-picker-opens-to-date.story';
|
|
25
25
|
export { default as DatePickerTextInputProps } from './date-picker-text-input-props.story';
|
|
26
26
|
export { default as DatePickerWithTimePicker } from './date-picker-with-time-picker.story';
|
|
27
|
+
export { default as DatePickerWithTimeZone } from './date-picker-with-timezone.story';
|
|
28
|
+
export { default as DatePickerWithTimeZoneBothMode } from './date-picker-with-timezone-both-mode.story';
|
|
27
29
|
export { default as DatePickerDisabled } from './date-picker-disabled.story';
|
|
28
30
|
export { default as DatePickerInDialog } from './date-picker-in-dialog.story';
|
|
29
31
|
export { default as DatePickerFull } from './date-picker-full.story';
|
|
@@ -35,6 +37,8 @@ export declare const DatePickerMinMaxDateSource: string;
|
|
|
35
37
|
export declare const DatePickerOpensToDateSource: string;
|
|
36
38
|
export declare const DatePickerTextInputPropsSource: string;
|
|
37
39
|
export declare const DatePickerWithTimePickerSource: string;
|
|
40
|
+
export declare const DatePickerWithTimeZoneSource: string;
|
|
41
|
+
export declare const DatePickerWithTimeZoneBothModeSource: string;
|
|
38
42
|
export declare const DatePickerDisabledSource: string;
|
|
39
43
|
export declare const DatePickerInDialogSource: string;
|
|
40
44
|
export declare const DatePickerFullSource: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/date-picker/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE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,EAAE,CAAC"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export { ToasterControlled, Toaster, toast, type ToastId } from './toast';
|
|
|
63
63
|
export { Tooltip } from './tooltip';
|
|
64
64
|
export { Skeleton } from './skeleton';
|
|
65
65
|
export { TimePicker, NeedleTime } from './time-picker';
|
|
66
|
+
export { TimeZonePicker } from './timezone-picker';
|
|
66
67
|
export { Spotlight, SpotlightProvider, SpotlightTarget, SpotlightTour, useSpotlightContext, } from './spotlight';
|
|
67
68
|
export { LoadingBar } from './loading-bar';
|
|
68
69
|
export { IconButton } from './icon-button';
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;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e,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { type CommonProps } from '../_common/types';
|
|
23
|
+
export type TimeZonePickerProps = {
|
|
24
|
+
/** The value of the timezone picker (IANA timezone identifier) */
|
|
25
|
+
value?: string;
|
|
26
|
+
/** Whether the timezone picker is fluid */
|
|
27
|
+
isFluid?: boolean;
|
|
28
|
+
/** Whether the timezone picker is read only */
|
|
29
|
+
isReadOnly?: boolean;
|
|
30
|
+
/** Whether the timezone picker is required */
|
|
31
|
+
isRequired?: boolean;
|
|
32
|
+
/** Whether the timezone picker is disabled */
|
|
33
|
+
isDisabled?: boolean;
|
|
34
|
+
/** The label of the timezone picker */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** The size of the timezone picker */
|
|
37
|
+
size?: 'small' | 'medium' | 'large';
|
|
38
|
+
/** Manually set the error text */
|
|
39
|
+
errorText?: string;
|
|
40
|
+
/** Callback function triggered when the timezone picker value changes */
|
|
41
|
+
onChange?: (timezone: string) => void;
|
|
42
|
+
/** Callback function triggered when the timezone picker encounters an error */
|
|
43
|
+
onError?: (error: string, timezone: string) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Strategy for the dropdown floating element.
|
|
46
|
+
* By default it is absolute, but if the component is inside of a needle Dialog, it is set to fixed.
|
|
47
|
+
* If this prop is set, no auto-detection of Dialog is done.
|
|
48
|
+
*/
|
|
49
|
+
floatingStrategy?: 'absolute' | 'fixed';
|
|
50
|
+
/** Whether the dropdown element is rendered in a portal. */
|
|
51
|
+
isPortaled?: boolean;
|
|
52
|
+
/** Reference date for calculating timezone offsets (useful for DST-aware offset display) */
|
|
53
|
+
referenceDate?: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Display mode: 'city', 'utc', or 'both'
|
|
56
|
+
* 'city' - shows city-based timezones, This should be used when the user needs to select a timezone for themselves or if they are selecting a timezone that's related to a date.
|
|
57
|
+
* 'utc' - shows UTC timezones, This should be used when the user needs to select a timezone for a database entry or a technical application.
|
|
58
|
+
* 'both' - shows both city-based and UTC timezones in separate sections, This should be used when the user needs to select a timezone for a database entry or a technical application, but also wants to see the city-based timezones for context for example a zoned date time.
|
|
59
|
+
* @default 'city'
|
|
60
|
+
* @example
|
|
61
|
+
* <TimeZonePicker mode="city" />
|
|
62
|
+
* <TimeZonePicker mode="utc" />
|
|
63
|
+
* <TimeZonePicker mode="both" />
|
|
64
|
+
*/
|
|
65
|
+
mode?: 'city' | 'utc' | 'both';
|
|
66
|
+
};
|
|
67
|
+
export declare const TimeZonePicker: ({ isDisabled, isFluid, isReadOnly, isRequired, value, label, onChange, className, onError, style, size, errorText, htmlAttributes, floatingStrategy, isPortaled: isPortaledProp, referenceDate, mode, ref, ...restProps }: CommonProps<"input", TimeZonePickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
//# sourceMappingURL=TimeZonePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeZonePicker.d.ts","sourceRoot":"","sources":["../../../src/timezone-picker/TimeZonePicker.tsx"],"names":[],"mappings":"AA6CA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAkBpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACxC,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4FAA4F;IAC5F,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,2NAoB5B,WAAW,CAAC,OAAO,EAAE,mBAAmB,CAAC,4CAqf3C,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export interface TimeZoneOption {
|
|
22
|
+
value: string;
|
|
23
|
+
label: string;
|
|
24
|
+
offset: string;
|
|
25
|
+
offsetMinutes: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Generates UTC-only timezone options derived from the Intl API
|
|
29
|
+
* Uses the Intl API to discover which UTC offsets are actually used by supported timezones
|
|
30
|
+
* @param referenceDate - The date to use for calculating timezone offsets (defaults to current date)
|
|
31
|
+
*/
|
|
32
|
+
export declare const generateUTCTimeZoneOptions: (referenceDate?: Date) => TimeZoneOption[];
|
|
33
|
+
/**
|
|
34
|
+
* Generates a list of common timezone options with their UTC offsets
|
|
35
|
+
* @param referenceDate - The date to use for calculating timezone offsets (defaults to current date)
|
|
36
|
+
* @param excludeUTC - Whether to exclude the UTC timezone from the list (useful when combining with UTC-only options)
|
|
37
|
+
*/
|
|
38
|
+
export declare const generateTimeZoneOptions: (referenceDate?: Date, excludeUTC?: boolean) => TimeZoneOption[];
|
|
39
|
+
/**
|
|
40
|
+
* Gets the user's current timezone
|
|
41
|
+
*/
|
|
42
|
+
export declare const getUserTimeZone: () => string;
|
|
43
|
+
/**
|
|
44
|
+
* Parses a custom UTC offset string (e.g., "UTC+5:30", "UTC-3:45")
|
|
45
|
+
* @param input - The input string to parse
|
|
46
|
+
* @returns The parsed timezone value or null if invalid
|
|
47
|
+
*/
|
|
48
|
+
export declare const parseCustomUTCOffset: (input: string) => string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Validates if a string is a valid UTC timezone format
|
|
51
|
+
* @param input - The input string to validate
|
|
52
|
+
* @returns True if valid UTC timezone format
|
|
53
|
+
*/
|
|
54
|
+
export declare const isValidUTCFormat: (input: string) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Formats a timezone for display
|
|
57
|
+
* @param timezone - The IANA timezone identifier or UTC offset
|
|
58
|
+
* @param referenceDate - The date to use for calculating the offset (defaults to current date)
|
|
59
|
+
*/
|
|
60
|
+
export declare const formatTimeZone: (timezone: string, referenceDate?: Date) => string;
|
|
61
|
+
//# sourceMappingURL=generate-timezone-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-timezone-options.d.ts","sourceRoot":"","sources":["../../../src/timezone-picker/generate-timezone-options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACvB;AAkFD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,GACrC,gBAAgB,IAAI,KACnB,cAAc,EAsBhB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,gBAAgB,IAAI,EACpB,oBAAkB,KACjB,cAAc,EAuDhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,MAMlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,MAAM,GAAG,IAyB7D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,KAAG,OAEhD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,EAChB,gBAAgB,IAAI,KACnB,MAsBF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export * from './TimeZonePicker';
|
|
22
|
+
export * from './generate-timezone-options';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/timezone-picker/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export { default as TimeZonePickerDefault } from './timezone-picker-default.story';
|
|
22
|
+
export { default as TimeZonePickerFluid } from './timezone-picker-fluid.story';
|
|
23
|
+
export { default as TimeZonePickerSizes } from './timezone-picker-sizes.story';
|
|
24
|
+
export { default as TimeZonePickerDisabled } from './timezone-picker-disabled.story';
|
|
25
|
+
export { default as TimeZonePickerDSTAware } from './timezone-picker-dst-aware.story';
|
|
26
|
+
export { default as TimeZonePickerUTCOnly } from './timezone-picker-utc-only.story';
|
|
27
|
+
export { default as TimeZonePickerBothMode } from './timezone-picker-both-mode.story';
|
|
28
|
+
export { default as TimeZonePickerInDialog } from './timezone-picker-in-dialog.story';
|
|
29
|
+
export declare const TimeZonePickerDefaultSource: string;
|
|
30
|
+
export declare const TimeZonePickerFluidSource: string;
|
|
31
|
+
export declare const TimeZonePickerSizesSource: string;
|
|
32
|
+
export declare const TimeZonePickerDisabledSource: string;
|
|
33
|
+
export declare const TimeZonePickerDSTAwareSource: string;
|
|
34
|
+
export declare const TimeZonePickerUTCOnlySource: string;
|
|
35
|
+
export declare const TimeZonePickerBothModeSource: string;
|
|
36
|
+
export declare const TimeZonePickerInDialogSource: string;
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/timezone-picker/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAatF,eAAO,MAAM,2BAA2B,QAEvC,CAAC;AACF,eAAO,MAAM,yBAAyB,QAErC,CAAC;AACF,eAAO,MAAM,yBAAyB,QAErC,CAAC;AACF,eAAO,MAAM,4BAA4B,QAExC,CAAC;AACF,eAAO,MAAM,4BAA4B,QAExC,CAAC;AACF,eAAO,MAAM,2BAA2B,QAEvC,CAAC;AACF,eAAO,MAAM,4BAA4B,QAExC,CAAC;AACF,eAAO,MAAM,4BAA4B,QAExC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
export declare const TimeZonePickerBothMode: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default TimeZonePickerBothMode;
|
|
23
|
+
//# sourceMappingURL=timezone-picker-both-mode.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezone-picker-both-mode.story.d.ts","sourceRoot":"","sources":["../../../../src/timezone-picker/stories/timezone-picker-both-mode.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,eAAO,MAAM,sBAAsB,+CA4DlC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|